2
a help with Pag Seguro
I created an account on Pag Seguro do UOL
to the website.
I have the form below
<form method="post" target="pagseguro"
action="https://www.pagseguro.uol.com.br/v2/checkout/payment.html">
<!-- Campos obrigatórios -->
<input name="receiverEmail" type="hidden" value="[email protected]">
<input name="currency" type="hidden" value="BRL">
<!-- Itens do pagamento (ao menos um item é obrigatório) -->
<input type="hidden" name="itemId1" value="70">
<input type="hidden" name="itemDescription1" value="Publica">
<input type="hidden" name="itemAmount1" value="55.77">
<input type="hidden" name="itemQuantity1" value="1">
<!-- Itens do pagamento (ao menos um item é obrigatório) -->
<!-- Código de referência do pagamento no seu sistema (opcional) -->
<input name="reference" type="hidden" value="42">
<!-- Informações de frete (opcionais) -->
<input name="shippingType" type="hidden" value="1">
<input name="shippingAddressPostalCode" type="hidden" value="36880000">
<input name="shippingAddressStreet" type="hidden" value="Rua JB">
<input name="shippingAddressNumber" type="hidden" value="0">
<input name="shippingAddressComplement" type="hidden" value="Lote 06">
<input name="shippingAddressDistrict" type="hidden" value="São Francisco">
<input name="shippingAddressCity" type="hidden" value="Muriaé">
<input name="shippingAddressState" type="hidden" value="MG">
<input name="shippingAddressCountry" type="hidden" value="BRA">
<!-- Dados do comprador (opcionais) -->
<input name="senderName" type="hidden" value="Carlos Rocha">
<input name="senderAreaCode" type="hidden" value="32">
<input name="senderPhone" type="hidden" value="22222222">
<input name="senderEmail" type="hidden" value="[email protected]">
<!-- submit do form (obrigatório) -->
<input class="formularios" type="image" name="submit" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/120x53-pagar.gif" alt="Pague com PagSeguro">
</form>
When I submit the form, it gives time out error.
Is there a mistake?
Something is missing?
I know you can send via cUrl
. But understand that in this way the Customer of the site will have to enter his data in the very site of the store and not in the site of Pague Seguro which may generate distrust.
value="[email protected]" this has to be the email of your account in the pagseguro neh
– Sr. André Baill
this. Only here I posted different data. The question here is whether any field or assignment is missing in the wrong way.
– Carlos Rocha
The pagseguro is right, but why not use an ajax code they have? I’ll post it here for you
– Sr. André Baill
Good. Could use Curl and Ajax or Jquery. But then the client would not be redirected to the Secure Page. Or serea?
– Carlos Rocha
Hmm, this one of mine has to have a pay token, it’s a catalog of products you’re making or just an online purchase?
– Sr. André Baill
But send the token already in the first request? what is the name of the input? Because in this form I am not sending the token!
– Carlos Rocha
Online Store I am developing!
– Carlos Rocha
Let’s go continue this discussion in chat.
– Sr. André Baill