Subiendo proyecto completo sin restricciones de git ignore

This commit is contained in:
Jose Sanchez
2023-08-17 11:44:02 -04:00
parent a0d4f5ba3b
commit 20f1c60600
19921 changed files with 2509159 additions and 45 deletions

View File

@@ -0,0 +1,25 @@
<?php
# Crear un boton de pago a partir de una preferencia con atributos requeridos minimos
require_once dirname(__FILE__).'/../../index.php';
$preference = new MercadoPago\Preference();
# Building an item
$item = new MercadoPago\Item();
$item->id = "00001";
$item->title = "item";
$item->quantity = 1;
$item->unit_price = 100;
$preference->items = array($item);
$preference->save(); # Save the preference and send the HTTP Request to create
# Return the HTML code for button
echo "<a href='$preference->sandbox_init_point'> Pagar </a>";
?>