Jump to content

[Solved] Paypal error after payment


Recommended Posts

Hi everybody,

 

When a customer pays with paypal in our site he gets an error at the end of the process even if the paypal payment process its OK.

 

When he is suposed to see the paypal page were it says something like "you're payment has been done, now you will be redirected to the shopsite", instead of that the page goes blank.

 

If the customer try to reload the page (by pressing F5 for example) then it appears our site with this error:

Error occurred:


Por favor intenta contactar con la tienda:
<b>PayPal response:</b>
BILLINGAGREEMENTACCEPTEDSTATUS -> 0
CHECKOUTSTATUS -> PaymentActionCompleted
TIMESTAMP -> 2014-08-20T07:54:04Z
EMAIL -> XXXXXX@XXXX
PAYERID -> Y6ZQC2DQECC32
PAYERSTATUS -> verified
FIRSTNAME -> XXXXX
LASTNAME -> XXXXXXX
COUNTRYCODE -> ES
SHIPTONAME -> XXXXXX
SHIPTOSTREET -> XXXXXX
SHIPTOCITY -> XXXXXX
SHIPTOSTATE -> Es-B
SHIPTOZIP -> 08018
SHIPTOCOUNTRYCODE -> ES
SHIPTOCOUNTRYNAME -> Spain
ADDRESSSTATUS -> Unconfirmed
CURRENCYCODE -> EUR
AMT -> 72.01
ITEMAMT -> 72.01
SHIPPINGAMT -> 0.00
HANDLINGAMT -> 0.00
TAXAMT -> 0.00
INSURANCEAMT -> 0.00
SHIPDISCAMT -> 0.00
L_NAME0 -> XXXXXXX
L_NAME1 -> XXXXXX
L_NUMBER0 -> 123
L_NUMBER1 -> 904
L_QTY0 -> 1
L_QTY1 -> 1
L_TAXAMT0 -> 0.00
L_TAXAMT1 -> 0.00
L_AMT0 -> 48.26
L_AMT1 -> 23.75
L_DESC0 -> XXXXX...
L_DESC1 -> XXXXXX...
L_ITEMWEIGHTVALUE0 -> 0.00000
L_ITEMWEIGHTVALUE1 -> 0.00000
L_ITEMLENGTHVALUE0 -> 0.00000
L_ITEMLENGTHVALUE1 -> 0.00000
L_ITEMWIDTHVALUE0 -> 0.00000
L_ITEMWIDTHVALUE1 -> 0.00000
L_ITEMHEIGHTVALUE0 -> 0.00000
L_ITEMHEIGHTVALUE1 -> 0.00000
PAYMENTREQUEST_0_CURRENCYCODE -> EUR
PAYMENTREQUEST_0_AMT -> 72.01
PAYMENTREQUEST_0_ITEMAMT -> 72.01
PAYMENTREQUEST_0_SHIPPINGAMT -> 0.00
PAYMENTREQUEST_0_HANDLINGAMT -> 0.00
PAYMENTREQUEST_0_TAXAMT -> 0.00
PAYMENTREQUEST_0_INSURANCEAMT -> 0.00
PAYMENTREQUEST_0_SHIPDISCAMT -> 0.00
PAYMENTREQUEST_0_TRANSACTIONID -> XXXXXXXXXXX
PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED -> false
PAYMENTREQUEST_0_SHIPTONAME -> XXXXX
PAYMENTREQUEST_0_SHIPTOSTREET -> XXXXXX
PAYMENTREQUEST_0_SHIPTOCITY -> XXXXXX
PAYMENTREQUEST_0_SHIPTOSTATE -> XXXX
PAYMENTREQUEST_0_SHIPTOZIP -> XXXXX
PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE -> ES
PAYMENTREQUEST_0_SHIPTOCOUNTRYNAME -> Spain
PAYMENTREQUEST_0_ADDRESSSTATUS -> Unconfirmed
PAYMENTREQUEST_0_ADDRESSNORMALIZATIONSTATUS -> None
L_PAYMENTREQUEST_0_NAME0 -> XXXXXX
L_PAYMENTREQUEST_0_NAME1 -> XXXX
L_PAYMENTREQUEST_0_NUMBER0 -> 123
L_PAYMENTREQUEST_0_NUMBER1 -> 904
L_PAYMENTREQUEST_0_QTY0 -> 1
L_PAYMENTREQUEST_0_QTY1 -> 1
L_PAYMENTREQUEST_0_TAXAMT0 -> 0.00
L_PAYMENTREQUEST_0_TAXAMT1 -> 0.00
L_PAYMENTREQUEST_0_AMT0 -> 48.26
L_PAYMENTREQUEST_0_AMT1 -> 23.75
L_PAYMENTREQUEST_0_DESC0 -> XXXXXX...
L_PAYMENTREQUEST_0_DESC1 -> XXXXXX...
L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0 -> 0.00000
L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE1 -> 0.00000
L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0 -> 0.00000
L_PAYMENTREQUEST_0_ITEMLENGTHVALUE1 -> 0.00000
L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0 -> 0.00000
L_PAYMENTREQUEST_0_ITEMWIDTHVALUE1 -> 0.00000
L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0 -> 0.00000
L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE1 -> 0.00000
PAYMENTREQUESTINFO_0_TRANSACTIONID -> XXXXXXXXX
PAYMENTREQUESTINFO_0_ERRORCODE -> 0
Cart changed since the last checkout express, please make a new Paypal checkout payment
Your cart is empty.

Note: I've intentionaly put some XXXX at the sensible data...

 

 

 

 

The site is http://nutri-cosmetica.com

I'm using Prestashop 1.6 (I've recently update from prestashop 1.5)

 

 

 

Any idea of what could been happening??? I haven't found many info on forums :unsure:

 

Thanks

Edited by Antakarana (see edit history)
Link to comment
Share on other sites

One clue....

 

Other similar thread tells that the code error that I see after reloading the site is due to the site reloading itself... So now the problem focus on why the paypal payment gets blank after processing.

 

At the post they say it was an incompatibility from other module.

 

http://www.prestashop.com/forums/topic/194532-solucionado-error-paypal-cart-changed-since-the-last-checkout-express/

 

any suggestion?

 

thanks

Link to comment
Share on other sites

When he is suposed to see the paypal page were it says something like "you're payment has been done, now you will be redirected to the shopsite", instead of that the page goes blank.

 

 

 

you have implied that the error is on the Paypal website, and not your Prestashop store.  If that is true, have you contacted Paypal support (this is not Paypal support) to have them address their issue?

 

You should take screen shots and make note of the URL in the browser when the white page is received.  I'm guessing the URL is not Paypal's website, but rather your website.  You need to determine this

Link to comment
Share on other sites

you have implied that the error is on the Paypal website, and not your Prestashop store.  If that is true, have you contacted Paypal support (this is not Paypal support) to have them address their issue?

 

You should take screen shots and make note of the URL in the browser when the white page is received.  I'm guessing the URL is not Paypal's website, but rather your website.  You need to determine this

 

Thanks for the answer... I will prepare some screen shots to help with the issue. As soon as I got them I will post them here.

 

regards

Link to comment
Share on other sites

Hi again...

 

Here you are the full sequence:

 

1º after selecting paypal payment the shop will bring me to the standard paypal site to proceed with checkout.

 

paypal1.jpg

 

 

2º After pressing "continue" button at the paypal checkout site I go back to our site and I see this:

 

paypal2.jpg

 

3º If I press the "confirm order" button at the previous page then I have this result (blank screen error 500):

 

paypal3.jpg

 

4º If I press F5 to reload the previous page then I have this error message:

 

paypal4.jpg

 

5º However the order was successfuly created at the step 3rd step... you can check it at the BackOffice:

 

paypal5.jpg

 

Notice that if you go to she the order status at the BackOffice, you will realize that there is no "status" added... where it is supposed to see the "paypal payment accepted" status.

 

Please ask any question if it is not clear.

 

Any help will be apreciated! Thanks!

Edited by Antakarana (see edit history)
Link to comment
Share on other sites

Ok, thank you that is much clearer.  So for that error 500, you will need to locate what is causing the error (obviously).  I would start by going into your control panel and locating the error log.  You might need your hosting provider support to do this, some hosts only keep this for a short period of time, so you may need produce the error and then quickly search the error log to see if it recorded what the error was.

 

If the error log does not record what caused the problem, then more extensive debugging would be required.  You might need to hire a professional for that

Link to comment
Share on other sites

Thanks again for your answer...

 

I have Access to many log files from the control panel of my hosting. Please could you tell me which log should I check?

 

For example at the moment that I did the paypal test checkout I can see this at the error.log file:

[21-Aug-2014 14:17:39] WARNING: [pool nutri-cosmetica.com] server reached max_children setting (5), consider raising it 
 [Thu Aug 21 14:19:01 2014] [error] [client 80.102.195.206] FastCGI: server "/usr/sbin/php-fpm-nutri-cosmetica.com" stderr: PHP message: PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/var/www/vhosts/nutri-cosmetica.com/httpdocs/themes/warehouse/mails/es/order_conf_product_list.txt" on line 1 "[{shop_url}]" unknown tag "shop_url" <-- , referer: http://nutri-cosmetica.com/es/module/paypal/confirm?get_confirmation=1 
 [Thu Aug 21 14:19:01 2014] [error] [client 80.102.195.206] FastCGI: server "/usr/sbin/php-fpm-nutri-cosmetica.com" stderr: thrown in /var/www/vhosts/nutri-cosmetica.com/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 1, referer: http://nutri-cosmetica.com/es/module/paypal/confirm?get_confirmation=1 
 [21-Aug-2014 14:25:00] WARNING: [pool nutri-cosmetica.com] server reached max_children setting (5), consider raising it 
Link to comment
Share on other sites

Your theme has overriden part of the order confirmation email, and it has a problem.  You can try to edit this file and remove the issue statement and see if it works

 

The file path is

/var/www/vhosts/nutri-cosmetica.com/httpdocs/themes/warehouse/mails/es/order_conf_product_list.txt

 

Open this file using FTP, locate the text {shop_url} and remove it.  Then try another order and see if it works this time. 

 

I don't know why your theme would override this email template, that is something you will need to work out with your theme author

  • Like 1
Link to comment
Share on other sites

Your theme has overriden part of the order confirmation email, and it has a problem.  You can try to edit this file and remove the issue statement and see if it works

 

The file path is

/var/www/vhosts/nutri-cosmetica.com/httpdocs/themes/warehouse/mails/es/order_conf_product_list.txt

 

Open this file using FTP, locate the text {shop_url} and remove it.  Then try another order and see if it works this time. 

 

I don't know why your theme would override this email template, that is something you will need to work out with your theme autor

 

Great! I've deleted the file that you've mention and now it Works!

 

Thank you! :lol:

 

 

PS. notice that I first removed only the text {shop_url} from the file with no luck... then I removed the .txt file and then it worked. No errors or blank page during the whole process...

Edited by Antakarana (see edit history)
Link to comment
Share on other sites

Yes I do... actualy there are all the emails in that folder as they are part of a responsive email module that came with the theme.

 

I had no other known issues apart from this one so I think that the rest of the process are fine. However if I get any other similar issue that will be the first think to check and if it is necessary I will uninstall/remove the responsive mail module.

 

thanks again!

Edited by Antakarana (see edit history)
Link to comment
Share on other sites

  • 1 month later...

I'm getting this error yet the only two remotely related post's have not helped me in the slightest, Is there anything else that can cause this issue ? 

 

All my folders are set to 755 and files 644 for the paypal module via FTP, the zipcode/postcode is set as mandatory (ithink , not sure what process i need to do) and I'm using the original bootstrap theme 

Link to comment
Share on other sites

  • 2 years later...

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