Forum
Paypal Express Checkout
Hi Guys
I have a bit of a problem with Paypal Checkout within the shop. I have setup the API details in shop.php. When I call the perch_shop_checkout() function on the checkout page it just goes straight to the URL I set as the $cancel_url.
As the page is forwarding I am not getting errors displayed. Is it the perch_shop_checkout() that is doing the forwading? Or is it making a call to Paypal and they are rejecting and forwarding to the $cancel_url?
Good question. Turn on debug, and add this before
perch_shop_checkout()
:What does debug say?
Ahh I see lots of red now!
Do you need the rest of the debug?
Further to this and more concerning. I have just received a 'Thank you for your order email' saying that the order is complete. Although it doesn't appear in the orders list in the admin!
This is the rest of the debug
Under Shop > Emails > Order placed, which status do you have in "Send for status" ?
Ah I see that I have Order paid sending out when the Send for status is Created. Thank you that one is sorted.
It looks like from the errors above that it may be Paypal rejecting the connection?
It says
ReturnURL is invalid
What value are you setting for the return URL?
I had the ReturnURL as relative! Thank you again for your excellent support.