Jump to content

Order confirmation page appears blank after payment made through Paypal


spexistechnology

Recommended Posts

My shop url is http://www..com.au/ with a custom theme. PrestaShop version is 1.5.4.1 and paypal module version is 3.5.1. I've a below issue.

 

When I/customers make payments through Paypal they get presented with a blank OrderConfirmation page after successful payment. At the backend though all goes well. The transaction gets completed successfully.

I did the testing with the sandbox and I get presented with a proper order confirmation page.

 

Please help.

 

Regards,

 

 

solved.

Edited by spexistechnology (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Identical issue here - this seems to be some kind of timing issue - pausing the execution of the program (presumably until PayPal's IPN hits your server) may clear this issue up. We've only tested this in Sandbox mode - we can't afford to roll this out to a live environment until we can be confident that this won't be a production issue.

Link to comment
Share on other sites

it will work in sandbox mode as the invoice is not generated during the process but will not work in live mode as the invoice is generated. I had a prestashop programmer to fix this one for me. he mentioned that paypal module is not compatible with some code in one of the php files and he changed the coding. It works great now!

which version or PS are you using? I can give you some files from my PS and see if they work on yours?

Link to comment
Share on other sites

Actually we've resolved this by simply turning off the re-direct after the PayPal purchase is completed. For some reason the PayPal module still re-directs to a self-hosted confirmation page, but it at least seems to wait for the IPN from PayPal before doing so.

 

I haven't dug into the code much to work this out but basically it's not well documented from either the module, or PayPal's end. Lots of trial and error unfortunately!

 

Glad you got your issue sorted :)

Link to comment
Share on other sites

In your PayPal account, go to Profile, then underneath the 'Web Payments Pro' section, click 'Settings'. You will find the option to use a redirect or a PayPal generated confirmation page.

 

Keep in mind that the URL you enter in the PayPal settings will automatically be overwritten by the PrestaShop module - by default it will set the redirect URL to a confirmation page which is provided by the module itself (check modules/paypal/views/templates/front/order-confirmation.tpl). Unfortunately the module offers no ability to customise this URL or the confirmation page - you will have to do so manually by editing the template file or changing the redirect URL.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...