Testing
The below steps and sets of credentials allow you to test logging in to merchant accounts and simulate generating transactions.
Create a session
Call Create Session with type: transaction_link
and a dummy external_user_id
.
Please note that if you intend to test generating transactions multiple times consecutively in a short period, it is recommended to use a different dummy external_user_id
for each session.
Invoke the SDK
Use the session_id
when creating a session you receive to invoke the SDK. In KnotConfiguration
, pass a merchantId
for a merchant of your choosing. In your implementation, merchants are retrieved via List Merchants. For testing purposes, you can likely hardcode a single id
for a merchant.
Login to a merchant account
Once you’ve invoked the SDK, you can login to a merchant account using one of the sets of credentials below, depending on what you would like to test.
Scenario | What will happen | Username | Password |
---|---|---|---|
New transactions | Your user’s merchant account will be successfully linked. 205 new transactions will be generated within a few seconds and you will be notified of them via the NEW_TRANSACTIONS_AVAILABLE event. The transactions will be retrievable via Sync Transactions. | user_good_transactions | pass_good |
New and updated transactions | Your user’s merchant account will be successfully linked. 205 new transactions will be generated within a few seconds and you will be notified of them via the NEW_TRANSACTIONS_AVAILABLE event. The transactions will be retrievable via Sync Transactions. Additionally, 3 transactions will be updated and you will be notified of them via the UPDATED_TRANSACTIONS_AVAILABLE event nearly immediately as well. The transactions wil be retrievable via Get Transaction By ID. | user_good_transactions | pass_good_updates |