Skip to content

Instantly share code, notes, and snippets.

@JuniorLima
Created November 8, 2013 04:03
Show Gist options
  • Save JuniorLima/7366107 to your computer and use it in GitHub Desktop.
Save JuniorLima/7366107 to your computer and use it in GitHub Desktop.
Pagseguro XML
<!-- INICIO FORMULARIO BOTAO PAGSEGURO -->
<form target="pagseguro" action="https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add" method="post">
<input type="hidden" name="receiverEmail" value="[email protected]" />
<input type="hidden" name="currency" value="BRL" />
<input type="hidden" name="itemId" value="036854" />
<input type="hidden" name="itemDescription" value="{{ nomedoproduto }}" />
<input type="hidden" name="itemQuantity" value="{{ quantidade }}" />
<input type="hidden" name="itemAmount" value="{{ precodoproduto }}" />
<input type="hidden" name="itemWeight" value="" />
<input type="hidden" name="itemShippingCost" value="0.00" />
<input type="image" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/205x30-pagar-laranja.gif" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />
</form>
<!-- FINAL FORMULARIO BOTAO PAGSEGURO -->
@JuniorLima
Copy link
Author

<!-- Dados do comprador (opcionais) -->  
<input type="hidden" name="senderName" value="José Comprador">  
<input type="hidden" name="senderAreaCode" value="11">  
<input type="hidden" name="senderPhone" value="56273440">  
<input type="hidden" name="senderEmail" value="[email protected]"> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment