Skip to content

Instantly share code, notes, and snippets.

@cristianofromagio
Created November 16, 2016 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cristianofromagio/cc0b96d696a8cbeb7b30fdf6509d4ade to your computer and use it in GitHub Desktop.
Save cristianofromagio/cc0b96d696a8cbeb7b30fdf6509d4ade to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<checkout>
<currency>BRL</currency>
<items>
<item>
<id>0001</id>
<description>Camarote 5 dias</description>
<amount>99999.99</amount>
<quantity>3</quantity>
</item>
<item>
<id>0002</id>
<description>Combo VIP</description>
<amount>150.00</amount>
<quantity>5</quantity>
</item>
</items>
<redirectURL>http://localhost:3000/pagamento.html</redirectURL>
<reference>COMPRA1234</reference>
<receiver>
<email>fromagio_cristiano@live.com</email>
</receiver>
</checkout>
{
email: 'fromagio_cristiano@live.com',
token: '611BF238E0004C0BBA3E113E37C83EC9',
currency: 'BRL',
itemId1: '0001',
itemDescription1: 'Camarote 5 dias',
itemAmount1: 200.00,
itemQuantity1: 5,
itemId2: '0002',
itemDescription2: 'Combo VIP',
itemAmount2: 150.00,
itemQuantity2: 3,
reference: 'COMPRA123'
}
https://ws.sandbox.pagseguro.uol.com.br/v2/checkout/
---
return com xml com <code> e <date>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment