ok
Direktori : /home2/selectio/www/a1tex.in/vendor/mercadopago/dx-php/samples/payment/minimal/ |
Current File : /home2/selectio/www/a1tex.in/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"; ?>