Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

jayason

Integrating Pagseguro in a site

Recommended Posts

Hi

I am developing an application which will be redirecting to Pagseguro site for payment . After the payment it should return back to my same application . I sends the values using the below code

sPageForm = "<HTML>" & _

"<BODY onLoad =""document.forms[0].submit();"">" & _

"<form target=""pagseguro"" method=""post"" action=""" & PayPal_url & """>" & _

"<input type=""hidden"" name=""email_cobranca"" value=""" & mail_id & """ />" & _

"<input type=""hidden"" name=""tipo"" value=""CBR"" />" & _

"<input type=""hidden"" name=""moeda"" value=""" & sCurrency & """ />" & _

"<input type=""hidden"" name=""item_id"" value=""123"" />" & _

"<input type=""hidden"" name=""item_descr"" value=""Pack_Credits"" />" & _

"<input type=""hidden"" name=""item_quant"" value=""1"" />" & _

"<input type=""hidden"" name=""item_valor"" value=""10.12"" />" & _

"<input type=""hidden"" name=""frete"" value=""0"" />" & _

"<input type=""hidden"" name=""peso"" value=""0"" />" & _

"</form>" & _

"</body>" & _

"</HTML>"

But when it reaches the site insted of showing amount as 10.12 ,its showing 10 . Wont Pagseguro accept values with decimal . Also i need help in returning back to my application . Can i add

 

"<input type=""hidden"" name=""return"" value=""" & UrlOK & """>" & _

"<input type=""hidden"" name=""cancel_return"" value=""" & UrlNOTOK & """>" & _

 

to return back to my application

 

Thanks

JAYASON

Compartilhar este post


Link para o post
Compartilhar em outros sites

Hello, welcome to the forum Jayason,

You must remove the. (Point), rather than 10:12 you must go through 1012

Compartilhar este post


Link para o post
Compartilhar em outros sites

Thanks for your reply .Its now working fine . After the payment is complete it should back to my application . In PAY-PAL while sending the data we can specify the cancel and return values . ) .I need to know how that can be done here . Can we specify the below code along with what we sent .

 

"<input type=""hidden"" name=""return"" value=""" & UrlOK & """>" & _

"<input type=""hidden"" name=""cancel_return"" value=""" & UrlNotOK & """>" & _

 

 

Thanks

JAYASON

 

Hello, welcome to the forum Jayason,

You must remove the. (Point), rather than 10:12 you must go through 1012

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

In service there pagseguro return value yet (Maybe they dismantled it someday), what you should do in order to work without errors is to use the method replace them to remove this.

string valor = "10.12" 

valor.Replace(".", "");

"<input type=""hidden"" name=""item_valor"" value=""+ valor +"" />" & _

Compartilhar este post


Link para o post
Compartilhar em outros sites

Ya i have doe the same way . After the payment is complete how to redirect to my site from Pagseguro . Do we have to send the return value to Pagseguro as we do in PAYPAL .

 

Thanks

JAYASON

Compartilhar este post


Link para o post
Compartilhar em outros sites

In PagSeguro after payment completed, you can resubmit the request to PayPal to validate the transaction.

 

Libraries in several liguagens

https://pagseguro.uol.com.br/desenvolvedor/modulos_e_bibliotecas.jhtml

 

Fórum da área

http://forum.imasters.com.br/index.php?/forum/244-gateways-e-meios-de-pagamento-online-pagseguro/page__s__373c16a7d34aafc30d4b327755ff3a63

Compartilhar este post


Link para o post
Compartilhar em outros sites

Hi

I need to know how to set up a return URL . from this link https://pagseguro.uol.com.br/desenvolvedor/retorno_automatico_de_dados.jhtml

they are telling to set up that . How do i use that .Is there any method like while sending data to pagseguro site itself we can specify the return URL .Also I need to know when the payment is complete , where will be redirected .

 

Thanks

JAYASON

Compartilhar este post


Link para o post
Compartilhar em outros sites

Hello Jayason, the automatic return, you access your PAGSEGURO account and enter into automatic return and enter your return URL. eg http://www.seusite.com.br/ok.html, this return is just a redirect that the PAGSEGURO to your site after completion of the transaction.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Hi

So you are saying that when my payment is complete it will automatically return to my web page .

 

Thanks

JAYASON

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.