PHP Classes
elePHPant
Icontem

File: MercadoPagoTest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Abraham Cruz Sustaita  >  Plugin Mercado Pago  >  MercadoPagoTest.php  >  Download  
File: MercadoPagoTest.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Plugin Mercado Pago
Send and verify payments using Mercado Pago API
Author: By
Last change: Cambios en los datos que se envían
Date: 4 years ago
Size: 408 bytes
 

Contents

Class file image Download
<?php
include_once 'Sit/Plugin/Pago/Mercado.php';

$m = Sit_Plugin_Pago_Mercado::getInstance ();
$m->createPayment ( array ('item_id' => 'ABCD1234', 'name' => 'Producto de prueba', 'currency' => 'MEX', 'price' => '15.6', 'seller_op_id' => 'pru3b4sust41t4' ) );
$payment = $m->sendPayment ( false );
print_r ( $payment );
$check = $m->checkPayment ( array ('pru3b4sust41t4' ), 2 );
print_r ( $check );