We have a test environment (sandbox) prepared to simulate different cases of success and failure when processing your operations.
To start testing, check the following:
Use test data for card numbers, security codes cvv2 and expiration dates.
Properly handle the errors that the API returns.
If you are using Webhooks, be sure that your implementation is ready to receive the messages that the Openpay platform sends.
While you're in your testing phase, we recommend to use the dashboard from which you can view the following information:
Public and private keys as well as your registration data in general.
Records of all your transactions.
Records of all your requests whether they are charges and payments operations or administrative operations.
Charging a card
Valid card numbers
To simulate charging a card, we provide the following valid numbers:
|5555555555554444||MasterCard||BANCO SANTANDER SERFIN
(Supports reward points)
(Supports reward points)
Note: If you try to charge any other credit card number, the system will return an error code.
Effective dates and security codes valid.
Only have to use a higher date of the current month and any security code 3 digit for VISA, MASTERCARD and 4 digits for AMEX
Invalid card numbers **
In order to be able to simulate more error cases, we provide the following card numbers:
|4222222222222220||3001||The card has been rejected.|
|4000000000000069||3002||The card has expired.|
|4444444444444448||3003||The card doesn’t have enough funds.|
|4000000000000119||3004||The card has been identified as stolen.|
|4000000000000044||3005||The card has been identified as fraudulent.|
|5454545454545454||3005||The card has been identified as fraudulent.|
|340000000000009||3001||The card has been rejected.|
|373737373737374||3002||The card has expired.|
|370000000000002||3003||The card doesn’t have enough funds.|
To see the complete list of the different errors click here.
In the sandbox environment all operations are simulated, so you can only store the following card numbers:
|5555555555554444||MasterCard||BANCO SANTANDER SERFIN||Debit|
|4444444444444448||Visa||BANCO MERCANTIL DEL NORTE||Credit|
Note: Any other card you try to register, the system will return an error code.
To test sending payments to a debit card, you can use the following number:
To send payments to a CLABE account use:
Note: You can also use any CLABE number valid in Mexico.
If you have Webhooks configured, you don’t have to do anything but have your site ready to start receiving notifications.
The sandbox environment is prepared to send notifications like a production environment.