Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is PayPal SANDBOX returning production urls for you?

As of today 2nd Oct 2015, the sandbox PayPal API is now returning a production URL, we have changed nothing since yesterday and have multiple different systems all doing the same thing - tried to lodge issue on PayPal Dev support site but it will not allow to submit, form keeps crashing

So yesterday, using PHP SDK $approvalUrl = $payment->getApprovalLink();

We get

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-#####

TODAY WE GET

https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-#######

NOTICE the sandbox missing from URL

Anyone else have this issue on SANDBOX ?

like image 308
devhaus.com.au Avatar asked Dec 21 '25 01:12

devhaus.com.au


1 Answers

We also encountered this bug today, what we did to fix this is just by concatenating sandbox on

https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-#######.

so it will be

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-#######.

NOTE this is just a bandaid fix until paypal resolves this issue.

like image 156
Mark Sargento Avatar answered Dec 22 '25 14:12

Mark Sargento



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!