# How to test card payments

> Simulate multiple card payment scenarios in the sandbox using the test cards provided by Antom.

You can simulate multiple card payment scenarios in the sandbox using the test cards provided by Antom:

-   Initiate a successful payment based on card brand or country/region.
-   Simulate a failed payment due to payment method failure or invalid data.
-   Simulate 3D secure authentication and 3D exemption scenarios.

## User experience

![卡1.png](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1715333981473-84ed5ee1-0d8f-4ed1-b0ae-88ce9513a1a1.png)

## Simulate a successful payment

Use the following test card numbers in the sandbox and input any value for CVC (3-digit number), postal code, expiration date, and the first two digits of the payment password.

| **Issuing country** | **Card brand** | **Card number** |
| --- | --- | --- |
| South Korea | Hyundai | 9490220011669217 |
| Brazil | Visa | 4294097400915107 |
| Mexico | Visa | 4006055482525268 |
| Chile | Visa | 4600729331819383 |
| Peru | Visa | 4310377720003234 |
| Global | Visa | 4054695723100768 |
| Global | Mastercard | 5162774114974622 |

## Simulate a failed payment

Use the following test card numbers, invalid data, or risk control failure simmulation trigger to simulate a failed payment.

### Test card number for failed payments

| **Issuing country** | **Card brand** | **Card number** |
| --- | --- | --- |
| Global | Visa | 4054692760174822 |
| Global | Mastercard | 5162770472561357 |

### Invalid data

Use any invalid data to test error scenarios caused by incorrect inputs, for example:

-   [invalid\_expiry\_month](https://docs.stripe.com/error-codes#invalid-expiry-month): use an invalid month, such as `13`.
-   [invalid\_cvc](https://docs.stripe.com/error-codes#invalid-cvc): use a two-digit cvv number, such as `99`.

### Fail due to risk control

Specify _paymentAmount.value_ in the **pay** API as `11`, `1100` or `1111` to simulate a failed payment due to risk control.

## 3D secure authentication

### 3D challenge

Specify _is3DSAuthentication_ in the **pay** API as `true` to initiate a 3D secure authentication.

![卡2.jpeg](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1715334646717-500363cc-3b2f-4e73-97a3-5fae4025e064.jpeg)

### 3D exemption

Use the specific card number 4035501000000008 to trigger the 3D exemption.