Files
triagungbiantoro 417b7b7453
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m27s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 31s
Build, Push and Deploy / deploy-production (push) Has been skipped
harga pada beranda terhubung ke manage plans di dashboard admin
2026-04-25 21:57:25 +07:00

26 lines
604 B
PHP
Executable File

<?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>";
?>