PaystackHQ/plugin-prestashop-1.7

Error after payment is successful [URGENT]

Opened this issue · 4 comments

Please the paystack plugin gives an error after checkout

Please follow the screenshots:

My current environment:
Screenshot (379)

Selected the paystack payment method during checkout and chose a test card (I am working in test mode)
Screenshot (377)

I get a notification that payment is successful. Also the test payment confirmation is sent to the Paystack account owner.
Screenshot (378)

What happens next is I am redirected to an error page
It says an error was encountered.
No value was given for the transaction.
No order was placed on the website and also the cart is not cleared.
It's almost like nothing happened.

Please kindly take the steps I took to recreate this error. I would appreciate a prompt response.
Thank you.

This issue is still pending. Has anyone been able to successfully use this plugin in the last year?

This issue is still pending. Has anyone been able to successfully use this plugin in the last year?

I am also having the same problem , did anyone solve it yet ?

@cadaverwater could you please share a screenshot of the error page along with info on your Prestashop environment?

I don't know if this will help anyone here but if you are running a newer version of PrestaShop the issue is with the Tools module not having the JsonDecode method anymore since it is now on by default in new versions of PHP. Just go to

paystack/controllers/front/paystacksuccess.php and change line 59 to the following

$result = json_decode($request);