Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mp = new MP ("XXX", "XXX");
- $preference_data = array(
- "items" => array(
- array(
- "title" => $producto_nombre,
- "quantity" => intval($producto_cantidad),
- "currency_id" => "ARS", // Available currencies at: https://api.mercadopago.com/currencies
- "unit_price" => intval($precio_unico)
- )
- )
- );
- $preference = $mp->create_preference($preference_data);
- ?>`
Add Comment
Please, Sign In to add comment