For various payment methods, you'll find test card numbers and information on how to test for success and error scenarios.
Digital River maintains two primary test environments for clients: Production Test Environment (PTE) and Client Test Environment (CTE). The PTE is used for the Digital River API while the CTE is intended for the Commerce API. In both environments, you'll never interact directly with the payments services. Instead, you'll be directed to a generic page that contains accept and reject options.
If the card numbers in this section fail to produce a success scenario, try entering a different purchase amount, currency, or quantity.
The Get Credit Card Numbers website is a useful resource for generating valid test card numbers. The site provides numbers that are a possible combination of characters which validate when passed through the MOD 10 algorithm.
To test a successful payment, use the following credit card numbers. The expiration date must be at least one day in the future. With the exception of Visa, the security code can be any random three or four digit number.
Card Number | Brand | Expiration Date | Security Code |
3434 567890 12341 | American Express | Any future date | Any four digits |
3034 567890 1235 | Diners Club | Any future date | Any three digits |
6011 9876 9876 9876 | Discover | Any future date | Any three digits |
3528 9876 9876 9879 | JCB | Any future date | Any three digits |
5466 1600 0000 0008 | Mastercard | Any future date | Any three digits |
6226 2200 0000 0009 | UnionPay | Any future date | Any three digits |
4444 2222 3333 1111 | Visa | Any future date | 123 |
You can also test how your integration handles different 3D Secure 1 authentication scenarios. To test your 3D Secure 1 integrations, use the the following test data:
Card Number | Brand | Expiration Date | Security Code | Notes |
4212 3456 7890 1237 | Visa | 10/2030 | 737 | When prompted to authenticate via the test page, enter user and password. |
You can also test how your integration handles different 3D Secure 2 authentication scenarios. To test your 3D Secure 2 integrations, use the the following test data:
Card Number | Brand | Expiration Date | Security Code |
3714 4963 5398 431 | American Express | 10/2030 | 7373 |
4035 5014 2814 6300 | Cartes Bancaires | 03/2030 | 737 |
3056 9309 0259 04 | Diners | 03/2030 | 737 |
6011 1111 1111 1117 | Discover | 03/2030 | 737 |
3566 1111 1111 1113 | JCB | 03/2030 | 737 |
5454 5454 5454 5454 | Mastercard | 03/2030 | 737 |
6212 3456 7890 1232 | UnionPay | 03/2030 | 737 |
4917 6100 0000 0000 | Visa | 03/2030 | 737 |
When prompted for 3D Secure 2 text challenges, use these credentials:
App Type | Password |
Mobile | 1234 |
Web | password |
Use these test card numbers to create payments that generate specific error scenarios. The expiration date must be at least one day in the future. The security code can be any random three digit number:
Card Number | Error Scenario |
4000 0000 0000 3295 |
|
4000 0000 0000 3600 |
|
4000 0000 0000 4103 |
|
4000 0000 0000 4663 |
|
4000 0000 0000 4442 |
|
After providing success scenario test data, you'll receive a Source
in a pending_redirect
state. Follow the redirect to select one of the options on the authorization page:
Option | Description |
Approve |
|
Decline |
|
After being triggered, PayPal error scenarios provide the following unique data to the Source
owner:
Scenario | Description |
SourceCreationFail |
|
ChargeCreationFail |
|
RefundFail |
|
After providing success scenario test data, you'll receive a Source
in a pending_redirect
state. Follow the redirect to select the following options on the authorization page:
Option | Description |
Approve |
|
Decline |
|
After being triggered, PayPal credit error scenarios provide the following unique data to the Source
owner:
Scenario | Description |
SourceCreationFail |
|
ChargeCreationFail |
|
RefundFail |
|
After providing success scenario test data, you'll receive a Source
in a pending_funds
state. The Source
may then be used to complete your Checkout
or Order
.
After being triggered, Wire Transfer error scenarios provide the following unique data to the Source
owner:
Scenario | Description |
SourceCreationFail |
|
SourceFailWithDelay |
|
RefundFailWhileCreation |
|
RefundFailAfterPaymentInfo |
|
After providing success scenario test data, you'll receive a Source
in a pending_redirect
state. Follow the redirect to select the following options on the authorization page:
Option | Description |
Approve |
|
Decline |
|
After being triggered, Direct Debit error scenarios provide the following unique data to the Source
owner:
Scenario | Description |
SourceFail |
|
SourceFailAfterRedirect |
|
ChargeFail |
|
ChargeFailedAfterPending | The |
RefundFail |
|
RefundFailedAfterPending | The |
ChargeRemainPending | The |
After providing success scenario test data, you'll receive a source
in a pending_redirect
state. Follow the redirect to select the following options on the authorization page:
Option | Description |
Approve |
|
Decline |
|
After being triggered, Direct Debit GB error scenarios provide the following unique data to the Source
owner:
Scenario | Description |
sourceFail@email.org |
|
sourceFailAfterRedirect@email.org | Source moves to a |
chargeFailedAfterWebhook@email.org | The |
refundFail@email.org |
|
refundFailedAfterWebhook@email.org | The |
After providing success scenario test data, you'll receive a Source
in a pending_redirect
state. Follow the redirect to select one of the options on the authorization page:
Option | Description |
Approve |
|
Decline |
|
After being triggered, Alipay error scenarios provide the following unique data to the Source
owner:
Scenario | Description |
authFail |
|
authFailAfterRedirect |
|
refundFail |
|