2017 © Pedro Peláez
 

library mercadopago

An easy to use library for MercadoPago API communication

image

dnetix/mercadopago

An easy to use library for MercadoPago API communication

  • Wednesday, September 23, 2015
  • by dnetix
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

MercadoPago SDK module for Payments integration

, (*1)

Installation

With Composer

From command line, (*2)

composer require dnetix/mercadopago

As a dependency in your project's composer.json, (*3)

{
    "require": {
        "dnetix/mercadopago": "0.8.*"
    }
}

, (*4)

Basic checkout

  • Create your application in https://applications.mercadopago.com
  • Set the values for the configuration array (Structure in examples/config.php)
  • Instanciate a MercadoPago object to create a preference. It can be binded to an IoC and create the preference
$mercadopago = Dnetix\MercadoPago\MercadoPago::load($config);

$preference = $mercadoPago->addItem([
        'id' => 'PRODUCT_ID',
        'title' => 'PRODUCT_TITLE',
        'description' => 'PRODUCT_DESCRIPTION',
        'quantity' => 1,
        'unit_price' => 10000,
        'picture_url' => 'OPTIONAL_URL_IMAGE_OF_PRODUCT',
    ])
    ->addExternalReference('OPTIONAL_EXTERNAL_REFERENCE')
    ->createPreference();
  • In your html
    <a href="<?= $preference->initPoint() ?>" name="MP-Checkout" class="">Payment Link</a>
  • And that's all. This process is explained in detail on examples/payment-creation/payment-simple.php

, (*5)

Examples

The examples for the different usage methods such as marketplace charges, payment search, notification handling and others are explained in the examples folder., (*6)

The Versions

23/09 2015

dev-master

9999999-dev

An easy to use library for MercadoPago API communication

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

by Diego Calle

payment sdk mercadopago

23/09 2015

v0.8.2

0.8.2.0

An easy to use library for MercadoPago API communication

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

by Diego Calle

payment sdk mercadopago

06/07 2015

0.8.1

0.8.1.0

An easy to use library for MercadoPago API communication

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

by Diego Calle

payment sdk mercadopago

05/07 2015

v0.8.0

0.8.0.0

An easy to use library for MercadoPago API communication

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Diego Calle

payment sdk mercadopago