Test payments
The sandbox environment supports card payments only. All other payment methods are available in the live environment.
To test the checkout without processing real payments, switch the Aghanim Dashboard into sandbox mode using the Sandbox toggle in the top-right corner. Switch it on to enter sandbox mode and off to return to production. Then use the test cards below.
To make a payment on the checkout page:
- Select the card number for the scenario you want to simulate.
- Enter any 3-digit CVV for Visa, Mastercard and other card types, or any 4-digit CVV for American Express.
- Enter any future expiration date in MM/YY format.
Successful payments
To make a successful test payment, use one of the cards below. After you complete the payment, you will receive a receipt sent to the specified email address and a transaction record in Aghanim Dashboard → Transactions.
| Card Brand | Card Number | CVV | Expiry date | Country |
|---|---|---|---|---|
| VISA (credit) | 4242 4242 4242 4242 | Any 3 digits | Any future date | GB |
| VISA (credit) | 4315 0818 0830 8748 | Any 3 digits | Any future date | TH |
| VISA (credit) | 4111 1111 1111 1111 | Any 3 digits | Any future date | PL |
| American Express | 3700 0000 0000 002 | Any 4 digits | Any future date | US |
| Mastercard (credit) | 5436 0310 3060 6378 | Any 3 digits | Any future date | MU |
| China Union Pay | 8171 9999 2766 0000 | Any 3 digits | Any future date | CN |
| Maestro | 6771 7980 2100 0008 | Any 3 digits | Any future date | AT |
| Discover (credit) | 6011 1111 1111 1117 | Any 3 digits | Any future date | US |
| JCB | 3530 1113 3330 0000 | Any 3 digits | Any future date | JP |
| VISA (credit) | 4744 0556 6520 4795 | Any 3 digits | Any future date | US |
| VISA (credit) | 4030 1871 7569 1410 | Any 3 digits | Any future date | CY |
| Mastercard (credit) | 5490 5290 6876 6884 | Any 3 digits | Any future date | GB |
| Mastercard (credit) | 5481 6996 4448 6744 | Any 3 digits | Any future date | PT |
| Discover (credit) | 6556 1386 1040 2565 | Any 3 digits | Any future date | KR |
Following a successful transaction, you will receive:
- A receipt sent to the specified email address.
- Event notifications sent to the designated webhook URL.
- A record of the transaction in the Transactions list on your Aghanim Dashboard.
Unsuccessful payments
To make an unsuccessful test payment, use one of the cards below. After you complete the payment, you will see a corresponding error message and receive a transaction record in Aghanim Dashboard → Transactions.
| Number | CVV | Expiry date | Response code | Description |
|---|---|---|---|---|
4832 2850 6160 9015 | Any 3 digits | Any future date | 16 | Payment declined |
4211 1272 6211 2418 | Any 3 digits | Any future date | 2051 | Insufficient funds |
4411 5883 2171 3124 | Any 3 digits | Any future date | 3041 | Lost card |
4178 1318 2730 9866 | Any 3 digits | Any future date | 3043 | Stolen card |
4867 0537 1696 5705 | Any 3 digits | Any future date | 2054 | Expired card |
3D Secure flow
To test 3D Secure authentication flow, use the following card:
| Card Brand | Card Number | CVV | Expiry date |
|---|---|---|---|
| VISA (credit) | 4224 7030 8257 5813 | Any 3 digits | Any future date |
After entering this card number, you will be redirected to a 3DS emulation page where you can choose to complete or fail the authentication by clicking the corresponding button.
Disputes
To test the dispute flow, use one of the cards below. The payment will complete successfully and a dispute will be automatically created a few seconds later without any further action required on the checkout, triggering a Payment Webhook with the dispute status.
| Card Brand | Card Number | CVV | Expiry date | Dispute reason | Scenario |
|---|---|---|---|---|---|
| VISA (credit) | 4000 0000 0000 0267 | Any 3 digits | Any future date | Fraudulent | Dispute lost |
| VISA (credit) | 4000 0000 0000 2685 | Any 3 digits | Any future date | Product not received | Dispute won |
If the dispute is lost, the payment moves to the chargeback status. If the dispute is won, the payment returns to the succeeded status.
Fraud reported
To test the Fraud Reported Webhook, use the following card:
| Card Brand | Card Number | CVV | Expiry date |
|---|---|---|---|
| VISA (credit) | 4171 6800 0000 0004 | Any 3 digits | Any future date |
Need help?
Contact our integration team at [email protected]