Bank Payments
Before you can run live bank payments, use our test environment to check that your integration works correctly. You can use our test environment to test the following transaction types:
- Sales
- Authorizations
- Reversals
- Unreferenced refunds
In addition to testing different transaction types, you can trigger specific return codes and re-present payments.
Note: If you have any issues when you run our test cases, email our integrations team at [email protected].
Before you begin
To help you with testing, we provide you with:
- Test environment
- Test values
- Returns
Test environment
Send your requests to our test environment:
Test environment base URI: https://api.uat.payroc.com/v1
Important: Use only test bank account details in our test environment.
Authenticating your requests
Use our test Identity Service to generate a Bearer token to include in the header of your requests. To generate your Bearer token, complete the following steps:
- Include your API key in the x-api-key parameter in the header of a POST request.
- Send your request to https://identity.uat.payroc.com/authorize.
Note: You need to generate a new Bearer token before the previous Bearer token expires.
Example request
Example response
If your request is successful, we return a response that contains your Bearer token, information about its scope, and when it expires.
Example request header
Test values
Use the following routing number and account number combinations to trigger specific results:
You can also use the following routing number and account number combinations:
Returns
To simulate a return, send a value of 888000XX for the account number, where XX is the return code without the R.
The following table shows a few examples of how to use test account numbers to trigger return codes:
Note: Each night we check for any requests that trigger a return code. It might take a day for us to create a return for the transaction.
Re-presentments
For some return codes, you can choose to re-present the payment or close the return. You can re-present or close returns with the following return codes:
- R01
- R03
- R04
- R09
Note: You can re-present a payment up to two times.