Search code examples
djangopaypaldjango-oscaropenedx

Integration with paypal redirect issue


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?


Solution

  • 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.