Integration
Test everything before the first real customer
The sandbox behaves like the live gateway and charges nothing. The outcome is chosen by the card number, so any scenario can be reproduced on demand.
Test cards
Any expiry date in the future, any CVC, any holder name. The number decides what happens.
| Card number | What happens |
|---|---|
| 4111 1111 1111 1111 | Paid, Visa |
| 5555 5555 5555 4444 | Paid, Mastercard |
| 3782 822463 10005 | Paid, American Express |
| 4000 0000 0000 0002 | The bank refuses the payment |
| 4000 0000 0000 9995 | Not enough money on the card |
| 4000 0000 0000 0069 | The card has expired |
| 4000 0000 0000 0119 | Processing error, nothing charged |
Scenarios worth running
A refusal
The order must stay open and the customer must be able to try again
A double callback
Send the same notification twice and check nothing doubles
An expired page
Leave the page until it runs out and check the order closes correctly
A partial refund
Refund part of the amount and compare your status with ours
A wrong signature
Post to your own callback address with a broken signature; it must be rejected