unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack

Home Page:https://paystack.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The paystack token has expired. Please refresh the page and try again

goodmuyis opened this issue · comments

Am still working a dev site. Everything works fine until this evening when i started getting this error. At first I thought had made some stupid changes in my code. Later I remember i still had a 3 older staging site online on my vps that works fine as the last time I tested it.

Anyone this same experience, because I suspected and Issue with API changes on Paystack end. Because I still my code still work up till this morning

Somehow am able to trace the error back to #125 when dd($e) after the exception catcher of redirectToGateway method inside PaymentController

When I comment line 122 "plan" => request()->plan, of /vendor/unicodeveloper/laravel-paystack/src/Paystack.php
Every became normal

experienced the same issue, followed @goodmuyis suggestion and it by passed the 400 error. I think this is a new problem

experienced the same issue, followed @goodmuyis suggestion and it by passed the 400 error. I think this is a new problem

Were you able to fix the issue, mine is working fine.

If you dd($e) or ddd($e) you will be able to get all the error return from paystack api call
see this image how it debug it https://imgur.com/dbBxtCw.png

I don't think this issue should have been closed since the recommended solution is actually not good practice but more of a hack or workaround.

I don't think this issue should have been closed since the recommended solution is actually not good practice but more of a hack or workaround.

I closed it because it is related to another issue #125 which was first reported and same work around applied to same

@goodmuyis @jaymal @vicsystems55 I have fixed the issue. Please upgrade to the latest version of the package.

@goodmuyis @jaymal @vicsystems55 I have fixed the issue. Please upgrade to the latest version of the package.

Thanks for the good work. However I was just wondering if the latest version would still work with Laravel 5.8 by any chance?

Ok.Thanks once again.