0
votes

I have to integrate simple paypal into my app. I am using following url as tutorial.

paypal tutorial link

before directing to paypal page I print its url in logs, which is


https://www.sandbox.paypal.com/cgi-bin/webscr?amount=12&cmd=_xclick&invoice=19&item_name=testing&item_number=19&personal=omairr.azam-facilitator%40gmail.com&quantity=1&return=http%3A%2F%2Four_ngrok_url%23%3CUser%3A0x0000010a4e1528%3E&upload=1


But when I am redirected to paypal sandbox, the url that i see in my browser is

https://www.paypal.com/myaccount/home

and I cannot see checkout form that will take credentials from buyer and show details about transaction.

NOTE: I am on localhost at this stage and have not deployed my app

Please help me in this, Thanks.

1

1 Answers

1
votes

I think this is due to your return url, which may be improperly set. It seems to be appending a User instance to your ngrok url. Changing the url to something else takes me to: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_flow&SESSION=GcW-vpSKb2wALSTAyNuU29ltNqKyVjVwIuNy3mqgKDM_Df2abfo9PWP6KXm&dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b08198163eee001d8a5bd337af8e5197b2a388 where I was informed that there's a problem with your email