ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/mercadopago/dx-php/samples/payment/minimal/
Upload File :
Current File : /home2/selectio/www/3-idiots/vendor/mercadopago/dx-php/samples/payment/minimal/create.php

<?php

    require_once dirname(__FILE__) . '/../../index.php';

    $payment = new MercadoPago\Payment();

    $payment->transaction_amount = 100;
    $payment->token = "CARD_TOKEN";
    $payment->description = "Title of what you are paying for";
    $payment->installments = 1;

    $payer = new MercadoPago\Payer();
    $payer->email = "your.payer@email.com";

    $payment->payer = $payer;
    $payment->save(); 

    echo "Payment ID: " . $payment->id . "\n";
    echo "Payment Status: " . $payment->status . "\n";

?>

Zerion Mini Shell 1.0