unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack
https://paystack.co
MIT License
597 stars 310 forks source link

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

Closed goodmuyis closed 3 years ago

goodmuyis commented 3 years ago

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

goodmuyis commented 3 years ago

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

vicsystems55 commented 3 years ago

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

goodmuyis commented 3 years ago

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

jaymal commented 3 years ago

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.

goodmuyis commented 3 years ago

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

unicodeveloper commented 3 years ago

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

jaymal commented 3 years ago

@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?

unicodeveloper commented 3 years ago

No

On Thu, 19 Nov 2020 at 18:25, Jamal notifications@github.com wrote:

@goodmuyis https://github.com/goodmuyis @jaymal https://github.com/jaymal @vicsystems55 https://github.com/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 by any chance?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/unicodeveloper/laravel-paystack/issues/126#issuecomment-730522664, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWPNUJ4UAIEBG7FUNIK63LSQVIJ5ANCNFSM4T2JRDXA .

-- Best Regards,

Prosper Otemuyiwa Co-founder, Eden (c) +234-812-375-8299 | @unicodeveloper https://twitter.com/unicodeveloper | prosper.otemuyiwa1 ( Skype )

jaymal commented 3 years ago

Ok.Thanks once again.