Paypal API error code log

I have integrated my install of ironwood.master with PayPal to the point where the user can add the course to the basket, checkout via Paypal and then enter their credit card details.

I then hardcoded the return_url as described here

After submitting the credit card details the user is then redirected back to the openedx platform. However, the user doesn’t receive a confirmation email stating the funds that have been debited, nor does the course they have purchased appear in their dashboard.

How can I recover the logs (error code?) associated from the API call to paypal?

What could be the issue ?

I would be most grateful if anyone who has incurred this issue could share…