1

I am integrating paypal with my openedx ironwood install. To implement ecommerce capabilities - openedx ironwood uses django oscar shopping cart.

It works to the point where one can enter their credit card information and submit the form.

However after submitting the form the following error occurs and this is the corresponding address in the address bar:

https://http/payment/paypal/execute/?paymentId=PAYID-LZWTHVY60U970153W662623L&token=EC-45D081042G524235T&PayerID=UBRT2SFRKASXL

Any idea on how I can fix this?

Bob
  • 357
  • 1
  • 3
  • 14

1 Answers1

0

It appears the URL https://http/payment/paypal/execute/ was given to PayPal as the return URL, and so it tried to return there after payment approval within the PayPal checkout.

You / the django oscar shopping cart needs to pass a valid return URL to PayPal in the API call at payment creation time.

Preston PHX
  • 27,642
  • 4
  • 24
  • 44
  • It seems as though the return url is defined on the paypal developer platform as shown in the pic (follow the link) https://imgur.com/a/WpLn0YS What would be an appropriate oauth return url? – Bob Mar 15 '20 at 11:26
  • oauth is not used for payment processing. The return URL is not configured in developer. It is set in the API call to create each payment. This happens at checkout time, after the cart is finalized for payment and before redirecting the payer to PayPal. – Preston PHX Mar 15 '20 at 11:45