Integrate Omnipay and Mercado Pago
Trexle connects Omnipay to Mercado Pago and 100+ other payment gateways using a single plugin for one time annual fee
Mercado Pago and Omnipay Integration Guide
Login to your MercadoPago dashboard.
- Click Create An Account.
- Click Create An Account again.
- Fill in the registration form and click Register.
Note: Under Account Type, select business account. - Click the confirmation link you received in the email from MercadoPago to activate your account.
- Find your Client ID and Client Secret in your MercagoPago account.
Use the Client ID and Client Secret to integrate Mercado Pago with your website.
Take the credentials you just obtained from Mercado Pago and navigate to Trexle dashboard, click Payments Gateways and select Mercado Pago from the drop down menu as shown below.
Fill into your Mercado Pago credential and click Add Gateway. Click the Activate button next to Mercado Pago, and it will give you a success message and the button will turn into green. You should see something like below.
Download Trexle Omnipay driver from Trexle github repository and install Omnipay using composer by adding the following lines into your composer.json file.
{
"require": {
"omnipay/trexle": "~2.0"
}
}
Run composer to update your application dependencies.
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Now, test a sandbox transaction using the text cards below.
How does testing work?
- Create 2 test users, a seller and a buyer.
- Use any of the card numbers listed below.
- Enter the prefix that you need in the field Name and lastname, according to the result you want to test.
- At last, complete the remaining data with valid information.
Card numbers
Once you are in the credit card form, you can use any of the following cards, according to your country:
Visa | Mastercard | American Express | |
---|---|---|---|
Argentina | 4509 9535 6623 3704 | 5031 7557 3453 0604 | 3711 803032 57522 |
Brazil | 4235 6477 2802 5682 | 5031 4332 1540 6351 | 3753 651535 56885 |
Chile | 4168 8188 4444 7115 | 5416 7526 0258 2580 | 3757 781744 61804 |
Colombia | 4013 5406 8274 6260 | 5254 1336 7440 3564 | 3743 781877 55283 |
Mexico | 4075 5957 1648 3764 | 5474 9254 3267 0366 | no disponible |
Peru | 4009 1753 3280 6176 | no disponible | no disponible |
Uruguay | 4014 6823 8753 2428 | 5808 8877 7464 1586 | no disponible |
Venezuela | 4966 3823 3110 9310 | 5177 0761 6430 0010 | no disponible |
Prefixes
- APRO
- Approved payment
- CONT
- Pending payment
- CALL
- Rejected. Call for authorize
- FUND
- Rejected by insufficient amount
- SECU
- Rejected by security code
- EXPI
- Rejected by expiration date
- FORM
- Rejected by an error in the form
- OTHE
- General rejection
Mercado Pago Supported Countries
Mercado Pago Supported Payment Processing Actions
✔ Authorize
✔ Capture
✔ Void
✔ Credit
✔ Recurring
✖ Card Store
Key Features
About Trexle
Trexle is a powerful online recurring subscription billing platform that integrate Mercado Pago and other +100 payment gateways with Omnipay and other dozen of e-commerce platforms.
About Mercado Pago
Mercado Pago is a respected payment gateway in Argentina, Brazil, Chile, Colombia, Mexico, Peru, Uruguay, Venezuela. Its a trusted name which has established itself over the years as a preferred payment gateway in Latin America. It supports all the Currencies of the respective countries where it is available.
About Omnipay
Omnipay is a payment processing library for PHP. It has been designed based on ideas from Active Merchant, plus experience implementing dozens of gateways for CI Merchant. It has a clear and consistent API, is fully unit tested, and even comes with an example application to get you started.