Jump to content

Stripe Payment Problem - Prestashop 1.7.5.2


kitfoxster
 Share

Recommended Posts

Hi!

Please help me, I swear to god I'm going crazy!!

My client has a prestashop 1.7.5.2 installation and would like to receive payments via credit card with the base (free) stripe plugin.

I've tried everything, it doesn't work. Or rather, it actually charges the money from the credit card and deposits it on my client's stripe account, but the checkout page stays frozen and doesn't refresh to the "order complete" page, and also doesn't create the order in backend.

It just stays there with the "processing payment" grayed out button.

The problem is related to a 500 error that appears in the console (while processing the payment). It's able to correctly send the request, but receives nothing (due to the 500 error).

Here's what I did so far:

- live website in prestashop 1.7.5.2 on the domain root, with stripe free plugin v2.0.8 -> doesn't work
- duplicate of live site in subfolder, with all modules disabled except stripe -> doesn't work
- duplicate of live site in subfolder, with all modules disabled except stripe AND base theme (even though the other theme wasn't phisically deleted) -> doesn't work
- duplicate of live site in subfolder, with all modules disabled except stripe AND base theme (even though the other theme wasn't phisically deleted) AND updated to last prestashop version -> doesn't work
- fresh prestashop 1.7.5.2 install in subfolder, with stripe free plugin v2.0.8  -> WORKS PERFECTLY (therefore it isn't a server or php problem, but should be a module conflict or theme issue)

Here's some info:

- the site is multilingual
- my client want's to show prices only to registered users (and changes prices based on manually assigned groups)
- therefore a customer has to create an account, wait for manual approval and group assignment, and only then can he/she buy
- the client simply logs into the site and sees prices and add to c art functionality

Everything works fine except for the 500 error that occurs on the stripe RETURN. Can you please help me?

Here's some technical info:

PrestaShop: 1.7.5.2

http://italcomsrl.com/eliminami3/ (exact duplicate of live site)

Theme: theme_pedona5-italcom


server Linux #1 SMP Tue Oct 9 18:14:47 EEST 2018 x86_64

software del server: Apache

PHP: 7.3.16

Memory limit: 768M

max execution time: 120

Max file size: 128M

 

Version MySQL: 5.6.40-84.0-log

Motor MySQL: InnoDB

Driver MySQL: DbPDO

 

At the moment stripe is set on test mode, so you can test by going to the website 

https://italcomsrl.com/eliminami3

Login in to the account 

usr: [email protected]
pse: prestashop

Add any product to the cart and go to the checkout page, therefore pay with stripe with this test-card info:

Card number: 4242424242424242
Any 3 digits as the CVC
Any future date as the expiry
Any 5 digits for the CAP

And you'll get the 500 error. The same error on test mode and on live, even though in live stripe actually does successfully charge the credit card.

 

Attached to this post are the screenshots of the firefox console error. Please help guys, I really don't know what else to try ç___ç

- Joseph

Schermata 2020-06-05 alle 16.15.14.png

Schermata 2020-06-05 alle 16.15.28.png

Schermata 2020-06-05 alle 16.15.36.png

Schermata 2020-06-05 alle 16.15.43.png

Schermata 2020-06-05 alle 16.15.51.png

Schermata 2020-06-05 alle 16.15.57.png

Schermata 2020-06-05 alle 16.16.08.png

Share this post


Link to post
Share on other sites

Have you tried to enable debug note and check those requests  in console ?

They should give you some clue why that 500 error appears..

Also checking hosting error logs could help.

Share this post


Link to post
Share on other sites

Hi! If I activate the debug mode I get errors in home page and in complete honesty I wasn’t able to understand much of it, tomorrow I’ll try activating it again and grab some screenshots. 
 

thanks for the quick reply!!

Share this post


Link to post
Share on other sites

Hi! Here I am again!

Here's a screenshot of the home page with the debug mode on.

I just tried another test payment and it didn't work, and in the php_errorlog in prestashop root folder there's this line:

Quote

[06-Jun-2020 08:54:23 Europe/Rome] PHP Fatal error:  Uncaught  --> Smarty: Unable to load template 'file:helpers/list/list_header.tpl' <-- 
  thrown in /home/italcom9/public_html/eliminami3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195


Could it be part of the problem?

Schermata 2020-06-06 alle 08.55.05.png

Share this post


Link to post
Share on other sites

That error does not seams yet connected to Stripe, but module, maybe part of theme, posstaticblocks.

And it have to do with PHP version you have, it may work with 7.1 but that is already deprecated so it would be best to

contact theme developer and ask for fix it for 7.2/7.3 version of PHP. Should not be big change.

 

But that is just a warning so should not be main issue, but should be fixed so you can check checkout and Stripe.

Other error message I think is for back office but cant say more.

Share this post


Link to post
Share on other sites

Thanks for your answer! The strange thing is that the error occurs even if I put php 7.1 on the server, I just tried again to be super sure.

I wrote a mail to the theme developers, let's see what they say!

- Joseph

Share this post


Link to post
Share on other sites

  • 2 weeks later...
2 hours ago, LLsb said:

I have the same problem... 

@kitfoxster, do you solve the problem?

Thank you!

Hi!

Ok, here I am with what my problem was!!

Initially the error given was linked to the stripe plugin, so I wrote to the stripe plugin techs and they were able to exclude the error, finding an error in the theme.

So I wrote to the template techs and they were able to see that it wasn't related to the theme.

In the meantime I was able to reinstall a copy of the whole site, starting from scratch, same versions of prestashop, theme and necessary modules, and everything worked.

So then I installed ALL of the modules the other site had and then it didn't work anymore.

So i was able to understand that, even though the error was blaming stripe and/or theme, it was a module issue.

I disabled one module at a time and tried to buy, until I found out that the problem was given by the NS Clients / Orders Export module!!! SO MANY HOURS wasted, I just had to disable that plugin and everything worked fine.

So my advice is to copy the site to a subfolder, disable all unnecessary plugins and see if it works. If it does, it's a module so start testing one at a time until you find the bastard!!

- Joseph

 

 

Edited by kitfoxster (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

Hellow Joseph, 

Thank you very much for your answer and your detailed explanation. I will try to follow your advice and if it is solved.

Thank you!

Share this post


Link to post
Share on other sites

  • 4 months later...

Thank you so much for posting this! I too have spent countless hours trying to fix an issue that just spontaneously started happening and I couldn't figure it out. The module developers couldn't figure it out either. It was indeed NS Clients / Orders Export module. I just disabled it and now Stripe is working again. What a giant pain. 

Thanks again

Share this post


Link to post
Share on other sites

  • 9 months later...
  • 3 weeks later...
  • 3 months later...

hello Fox

 

i need help also  i have this STRIP payments on my shop 

 

I have added in my payments module stripe 

But on my shop there is no such any credit card offer!

Can some one tell me why or how to fix ?

i contacted STRIp and my account and sashbord seems okey with tehm

i use the Presta V 1.7.81

www.vsmoda.com 

 

Thank you very much

Share this post


Link to post
Share on other sites

  • 9 months 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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More