2017 © Pedro Peláez
 

library mercadopago

MercadoPago SDK for Laravel

image

jpblancodb/mercadopago

MercadoPago SDK for Laravel

  • Wednesday, June 15, 2016
  • by JPBlancoDB
  • Repository
  • 1 Watchers
  • 1 Stars
  • 102 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

MercadoPago

1) Instalacion, (*1)

a) composer require jpblancodb/mercadopago b) Agregar en config/app en el array de providers, (*2)

'providers' => [, (*3)

  JPBlancoDB\MercadoPago\MercadoPagoProvider::class

c) Agregar en config/app en el array de aliases:, (*4)

'aliases' => [, (*5)

  'MercadoPago' => JPBlancoDB\MercadoPago\MercadoPago::class

d) ejecutar "php artisan vendor:publish", (*6)

e) agregar en el .env:, (*7)

MP_CLIENT=
MP_SECRET=

2) Ejemplo de uso:, (*8)

Usar el facade "MercadoPago":, (*9)

    $preference_data = array(
        "items" => array(
            array(
                "title" => "Title of what you are paying for",
                "currency_id" => "ARS",
                "category_id" => "Category",
                "quantity" => 1,
                "unit_price" => 10.2
            )
        )
    );

    $preference = MercadoPago::create_preference($preference_data);

The Versions

15/06 2016

dev-master

9999999-dev

MercadoPago SDK for Laravel

  Sources   Download

MIT

The Requires

 

by JP Blanco

15/06 2016

v1.0.2

1.0.2.0

MercadoPago SDK for Laravel

  Sources   Download

MIT

The Requires

 

by JP Blanco

15/06 2016

v1.0.1

1.0.1.0

MercadoPago SDK for Laravel

  Sources   Download

MIT

The Requires

 

by JP Blanco