Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 37 additions & 0 deletions boleto.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php


ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(-1);

require_once __DIR__ . '/vendor/autoload.php';

MercadoPago\SDK::setAccessToken("TEST-061b3b20-e1da-4181-b66c-1dfb90985e17");

$payment = new MercadoPago\Payment();
$payment->date_of_expiration = "2020-06-30T21:52:49.000-04:00";
$payment->transaction_amount = 100;
$payment->description = "Title of what you are paying for";
$payment->payment_method_id = "bolbradesco";
$payment->payer = array(
"email" => "test_user_19653727@testuser.com",
"first_name" => "Test",
"last_name" => "User",
"identification" => array(
"type" => "CPF",
"number" => "19119119100"
),
"address"=> array(
"zip_code" => "06233200",
"street_name" => "Av. das Nações Unidas",
"street_number" => "3003",
"neighborhood" => "Bonfim",
"city" => "Osasco",
"federal_unit" => "SP"
)
);

$payment->save();

?>
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"mercadopago/dx-php": "dev-master"
}
}
Loading