Testing
Use your Truegate test project and follow Make your first payment. Create a new transaction for each scenario, complete checkout, and check the result on your backend using Webhooks.
Cards
Enter these numbers in the payment form. Use any future expiry date, such as 12/34, and any three-digit CVC (123). For American Express, use four digits (1234).
| Scenario | Card number |
|---|---|
| Successful Visa payment | 4242 4242 4242 4242 |
| Successful Visa debit payment | 4000 0566 5566 5556 |
| Successful Mastercard payment | 5555 5555 5555 4444 |
| Successful Mastercard debit payment | 5200 8282 8282 8210 |
| Successful American Express payment | 3782 822463 10005 |
| 3DS authentication required | 4000 0000 0000 3220 |
| Decline after 3DS authentication | 4000 0084 0000 1629 |
| Generic decline | 4000 0000 0000 0002 |
| Insufficient funds | 4000 0000 0000 9995 |
| Expired card decline | 4000 0000 0000 0069 |
| Incorrect CVC decline | 4000 0000 0000 0127 |
For 3DS, complete the authentication screen to test success, then use a new transaction to test unsuccessful authentication. For the expired-card scenario, still enter a future expiry date: the card number triggers the decline.
These numbers are for card-form testing only. Full test card list and scenarios.
Apple Pay
Before testing:
- Ask your Truegate integration contact to whitelist every domain and subdomain used for checkout.
- Serve the checkout page over HTTPS with a valid certificate.
- Use a compatible device with Apple Wallet configured and an eligible card added.
- Complete Apple Pay setup for your project.
Open checkout on that device, select Apple Pay, and authorize the payment. Confirm the result through a webhook. If the button is missing, check the domain, HTTPS, and wallet availability first.
Google Pay
Before testing:
- Open checkout in Chrome over HTTPS.
- Sign in to your Google account and have Google Pay configured with an eligible payment card available on the device/account.
- Complete Google Pay setup for your project.
Select Google Pay, choose a card, and confirm the payment. Check the resulting webhook. The card numbers above are for the card form; wallet tests use the wallet payment sheet.
Updated 2 months ago