With this payment method it is possible to simulate the flows of:
- Authorization;
- Capture;
- Cancellation;
- Consultation.
To make better use of a simulated payment, you can create a fake card number using a generator online or choosing random numbers. For either option, the first 15 digits can be random, but the last one should correspond to the transaction status you want to test.
The Security Code (CVV) and expiration date information may be random, keeping the format - CVV (3 digits) and Validity (MM/YYYY).
Tokenization
If you want to test a transaction on the API E-commerce Cielo by saving the card number, we recommend using a card generator to comply with the mod10 (Luhn Algorithm) rule, which is used in Sandbox and Production environments.
Simulate Zero Auth validation
To simulate a successful authorization of a Zeroauth request in Sandbox, you have to send the request using a card number starting with 5, disregarding the issuer. For example: 5XXX.XXXX.XXXX.XXX4.
Status
The
status
of the transactions are defined by the final digits of each card, as well as theReturnCode
.
Final card digit | Transaction Status | Return Code | Return Message |
---|---|---|---|
XXXX.XXXX.XXXX.XXX0 XXXX.XXXX.XXXX.XXX1 XXXX.XXXX.XXXX.XXX4 | Authorized | 4/6 | Operation performed successfully |
XXXX.XXXX.XXXX.XXX2 | Not Authorized | 05 | Not Authorized |
XXXX.XXXX.XXXX.XXX3 | Not Authorized | 57 | Expired Card |
XXXX.XXXX.XXXX.XXX5 | Not Authorized | 78 | Blocked Card |
XXXX.XXXX.XXXX.XXX6 | Not Authorized | 99 | Time Out |
XXXX.XXXX.XXXX.XXX7 | Not Authorized | 77 | Canceled Card |
XXXX.XXXX.XXXX.XXX8 | Not Authorized | 70 | Problems with the Credit Card |
XXXX.XXXX.XXXX.XXX9 | Random Authorization | 4 a 99 | Operation Successful / Time Out |
The test card 4024.0071.5376.3191, for example, would simulated a successful transaction.
Warning
- The environment evaluates the format and end of the card. If an actual card is sent, the result of the operation will be identical to that described in the test cards table.
- Sandbox return codes are not the same as the ones available in production.
To check the return codes in Production, check API Codes.