• Stars
    star
    319
  • Rank 131,491 (Top 3 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 8 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mercado Pago's Official PHP SDK

Mercado Pago SDK for PHP

Latest Stable Version Total Downloads License

This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.

๐Ÿ’ก Requirements

PHP 5.6, 7.1 or higher

๐Ÿ’ป Installation

First time using Mercado Pago? Create your Mercado Pago account, if you donโ€™t have one already.

  1. Download Composer if not already installed

  2. On your project directory run on the command line composer require "mercadopago/dx-php:2.5.3" for PHP7 or composer require "mercadopago/dx-php:1.12.5" for PHP5.6.

  3. Copy the access_token in the credentials section of the page and replace YOUR_ACCESS_TOKEN with it.

That's it! Mercado Pago SDK has been successfully installed.

๐ŸŒŸ Getting Started

Simple usage looks like:

  <?php
    require_once 'vendor/autoload.php'; // You have to require the library from your Composer vendor folder

    MercadoPago\SDK::setAccessToken("YOUR_ACCESS_TOKEN"); // Either Production or SandBox AccessToken

    $payment = new MercadoPago\Payment();
    
    $payment->transaction_amount = 141;
    $payment->token = "YOUR_CARD_TOKEN";
    $payment->description = "Ergonomic Silk Shirt";
    $payment->installments = 1;
    $payment->payment_method_id = "visa";
    $payment->payer = array(
      "email" => "[email protected]"
    );

    $payment->save();

    echo $payment->status;
  ?>

๐Ÿ“š Documentation

Visit our Dev Site for further information regarding:

Check our official code reference to explore all available functionalities.

โค๏ธ Support

If you require technical support, please contact our support team at developers.mercadopago.com

๐Ÿป License

MIT license. Copyright (c) 2018 - Mercado Pago / Mercado Libre 
For more information, see the LICENSE file.

More Repositories

1

sdk-nodejs

Mercado Pago's Official Node.js SDK
TypeScript
349
star
2

sdk-python

Mercado Pago's Official Python SDK
Python
173
star
3

checkout-payment-sample

Using Checkout PRO to process payments
CSS
148
star
4

sdk-java

Mercado Pago's Official Java SDK
Java
104
star
5

devsite-docs

Mercado Pago's Devsite Documentation
JavaScript
100
star
6

cart-woocommerce

Mercado Pago's Official WooCommerce Plugin
PHP
90
star
7

sdk-js

Mercado Pago's Official JS SDK
TypeScript
88
star
8

sdk-dotnet

Mercado Pago's Official .Net SDK
C#
86
star
9

cart-prestashop

Mercado Pago plugin for Prestashop
84
star
10

sdk-ruby

Mercado Pago's Official Ruby SDK
Ruby
70
star
11

card-payment-sample

Using Checkout API to accept credit card payments
64
star
12

sdk-react

Mercado Pago's Official React SDK
TypeScript
52
star
13

cart-opencart

Mercado Pago's Official OpenCart 1 Plugin
PHP
50
star
14

card-payment-sample-node

Card payment processing with Checkout API
HTML
30
star
15

cart-wp-commerce

Mercado Pago's Official WP-Ecommerce Plugin
PHP
25
star
16

cart-opencart-3

Mercado Pago's Official OpenCart 3 Plugin
PHP
15
star
17

sdk-go

Mercado Pago's Official Go Lang
Go
14
star
18

cart-prestashop-7

Mercado Pago's official plugin for PrestaShop 1.6 and 1.7
PHP
13
star
19

pix-payment-sample-node

HTML
12
star
20

card-payment-sample-java

Card payment processing with Checkout API
HTML
10
star
21

card-payment-sample-php

Card payment processing with Checkout API
HTML
9
star
22

cart-virtuemart

Mercado Pago's Official Virtuemart Plugin
PHP
8
star
23

pix-payment-sample-java

Java
6
star
24

adb-payment

Official Mercado Pago Plugin for Adobe Commerce / Magento
PHP
6
star
25

payment-salesforce-plugin

Mercado Pago's Official Sales Force Plugin
JavaScript
6
star
26

cart-oscommerce

Mercado Pago's Official osCommerce Plugin
PHP
5
star
27

payment-magento-plugin

Mercado Pago's Adobe Commerce Plugin
PHP
4
star
28

payment-bricks-sample-node

JavaScript
4
star
29

point-android_integration

Java
4
star
30

pix-payment-sample

3
star
31

cart-prestashop-6

Mercado Pago's Official PrestaShop 1.6 Plugin
PHP
3
star
32

cart-magento

Mercado Pago's Official Magento 1 Plugin
2
star
33

card-payment-bricks-sample-node

Card payment processing with Checkout Bricks
CSS
2
star
34

adb-payment-23

Adobe Commerce (Magento) Plugin for version 2.3.x
PHP
2
star
35

pix-payment-sample-php

HTML
2
star
36

card-payment-bricks-sample-java

Card payment processing with Checkout Bricks
Java
2
star
37

pp-php-sdk

SDK responsible to abstract the interfaces to interact with Mercado Pago PP Core APIs.
PHP
2
star
38

card-payment-bricks-sample-python

Card payment processing with Checkout Bricks
CSS
2
star
39

DEPRECATED-sdk-php

DEPRECATED - MercadoPago PHP SDK
PHP
1
star
40

card-payment-bricks-sample

Card payment processing with Checkout Bricks
1
star
41

cart-zencart

Mercado Pago's Official Zen Cart Plugin
PHP
1
star
42

cart-opencart-2

Mercado Pago's Official OpenCart 2 Plugin
PHP
1
star
43

cart-magento2

Mercado Pago's Official Magento 2 Plugin
PHP
1
star
44

card-payment-bricks-sample-php

Card payment processing with Checkout Bricks
CSS
1
star