> ## Documentation Index
> Fetch the complete documentation index at: https://doc.haipay.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Test Card Numbers

> HaiPay credit card test card numbers for simulating successful payments, declines, and disputes.

<Tip title="Reference Note">
  The following pages reference this test card document:

  * [VISA/MASTER Payment API](/docs/en/V20260628/api/version2/creditcard)
  * [Merchant Initiated Transaction (MIT)](/docs/en/V20260628/api/version2/creditcard-mit)
  * [Subscription Payment](/docs/en/V20260628/api/version2/Subscription)
</Tip>

<Warning>
  **For testing environment only**
</Warning>

## Simulate Successful Payment

Use the following test card numbers with any CVC (3 digits) and a future expiry date to simulate a successful payment:

| Card Brand       | Card Number      | CVC          | Expiry          |
| :--------------- | :--------------- | :----------- | :-------------- |
| Visa             | 4242424242424242 | Any 3 digits | Any future date |
| Mastercard       | 5555555555554444 | Any 3 digits | Any future date |
| American Express | 378282246310005  | Any 4 digits | Any future date |

## Simulate Declines

Use the following test card numbers to simulate issuer declines, returning the corresponding error codes:

| Scenario           | Card Number      | Error Code     | Decline Code        |
| :----------------- | :--------------- | :------------- | :------------------ |
| Insufficient Funds | 4000000000009995 | card\_declined | insufficient\_funds |
| Generic Decline    | 4000000000000002 | card\_declined | generic\_decline    |
| Lost Card          | 4000000000009987 | card\_declined | lost\_card          |
| Stolen Card        | 4000000000009979 | card\_declined | stolen\_card        |

## Simulate Disputes

Use the following test card numbers to simulate post-transaction disputes. Payment succeeds first, then a dispute is filed by the cardholder:

| Dispute Type | Card Number      | Description                                           |
| :----------- | :--------------- | :---------------------------------------------------- |
| Fraudulent   | 4000000000000259 | Payment succeeds, then disputed as fraudulent         |
| Not Received | 4000000000002685 | Payment succeeds, then disputed as goods not received |

## Related Topics

* [Front-End Component](/docs/en/V20260628/api/version2/frontend-payment-element)
* [Payment Link](/docs/en/V20260628/api/version2/payment-link)
* [Merchant Initiated Transaction (MIT)](/docs/en/V20260628/api/version2/creditcard-mit)
