Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
goodmuyis opened this issue Nov 18, 2020 · 9 comments
Closed

Comments

@goodmuyis
Copy link

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
Copy link
Author

goodmuyis commented Nov 18, 2020

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
Copy link

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

@goodmuyis
Copy link
Author

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
Copy link

jaymal commented Nov 19, 2020

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
Copy link
Author

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 added a commit that referenced this issue Nov 19, 2020
@unicodeveloper
Copy link
Owner

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

@jaymal
Copy link

jaymal commented Nov 19, 2020

@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
Copy link
Owner

unicodeveloper commented Nov 19, 2020 via email

@jaymal
Copy link

jaymal commented Nov 19, 2020

Ok.Thanks once again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants