Testing
Use the sandbox to run every payment flow your integration supports before you go live: approvals, declines, voids, refunds, and recurring payments. Nothing in the sandbox moves real money.
Warning
Test cards
The welcome email you receive from Elavon when your sandbox is created includes the approved test card numbers for Visa (credit, debit, and corporate), Mastercard (credit, debit, and Maestro), American Express, Diners, and JCB. Other test numbers may decline.
| Field | What to enter |
|---|---|
| Card number | A test card from your sandbox welcome email |
| Expiration date | Any date in the future |
| Security code (CVV) | Any 3 digits for Visa, Mastercard, and Discover; any 4 digits for American Express |
| Amount | Whole amounts, such as 1.00, to make sure test payments approve |
The security code is also called CVV, CVV2, CVC, or CVC2. On American Express it's the card identification number (CID).
Error messages
Declines come back in a failures list, each with a code, a description, and the field involved (if any). There are three kinds:
| Decline type | What it means |
|---|---|
| Declined by gateway | The gateway stopped the payment, usually because it broke one of your fraud rules. |
| Declined by issuer | The cardholder's bank declined the payment. |
| Declined by processor | The acquirer declined the payment. |
"failures": [
{
"code": "declinedByProcessor",
"description": "Transaction was declined by the payment processor",
"field": null
},
{
"code": "cardExpired",
"description": "Transaction was declined because the card has expired",
"field": null
}
]Map these codes to clear, friendly messages for your customers, and log the full response for your support team.
Generating errors
- Issuer and processor declines: use the decline test cards listed in your sandbox welcome email.
- Gateway declines: set up a fraud rule in the merchant portal, then break it on purpose. For example, set a maximum amount of $100 and send a $150 test payment.
- Expired card: enter an expiration month and year in the past.
Once your test cases pass, you complete certification with the gateway before moving to production. ONKORE coordinates each step with you. See the go-live steps.
Gateway services in this section are provided through ONKORE's processing partner, Elavon. Developer accounts, sandbox and production credentials, the developer portal, and the merchant portal are provided by Elavon, so you'll see the Elavon name in those emails, portals, and API addresses. ONKORE remains your point of contact.
