> ## 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

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

> [!TIP]
>
> The following pages reference this test card document:
>
> * [VISA/MASTER Payment API](https://doc.haipay.net/en/history/V20260701/payments/cards/overview.md)
> * [Merchant Initiated Transaction (MIT)](https://doc.haipay.net/en/history/V20260701/payments/cards/merchant-initiated-transactions.md)
> * [Subscription Payment](https://doc.haipay.net/en/history/V20260701/payments/subscriptions/overview.md)

> [!WARNING]
>
> **For testing environment only**

## 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](https://doc.haipay.net/en/history/V20260701/payments/cards/payment-element.md)
* [Payment Link](https://doc.haipay.net/en/history/V20260701/payments/cards/payment-links.md)
* [Merchant Initiated Transaction (MIT)](https://doc.haipay.net/en/history/V20260701/payments/cards/merchant-initiated-transactions.md)
* [Review the Go-Live Checklist (IP Whitelist and Production Setup)](https://doc.haipay.net/en/history/V20260701/testing/go-live-checklist.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.