-
Notifications
You must be signed in to change notification settings - Fork 314
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
Class 'Paystack' not found in Laravel 5.4 #66
Comments
You need to create an instance of the class Paystack Like this:
|
Thanks @dbkonxepts that prompted another error (1/1) RequestException in CurlFactory.php (line 186) I will also be grateful if you can help me with a fix on this issue. Thanks Bro |
If you can send an excerpt of your code i.e in
However, errors at |
Yes 1 and 2 are very ok. ---- My route ----- My Payment Controller public function handleGatewayCallback() { $paymentDetails = $paystack->getPaymentData(); dd($paymentDetails); } Thanks Bro. |
----My view |
Alright, so I have seen your code. Cool. "Laravel Paystack" Readme/Documenation still needs some adjustments and improvements [Which I'm working on including some new boiler boilerplates, gonna do a PR soon!]; As such don't follow all you see. Here are the changes I would employ you make.
And that's it if you follow the steps above without missing anything you should be fine. |
I followed all the steps yet am having this error Class 'Paystack' not found.
I tried all suggestions made in this issue "Class 'Paystack' not found #52 ", but to no avail. (may be due to the fact they are using Laravel 5.6).
I also tried using
use \Unicodeveloper\Paystack\Paystack;
instead of
use Paystack
But i got this error
Non-static method Unicodeveloper\Paystack\Paystack::getAuthorizationUrl() should not be called statically
Please help...
The text was updated successfully, but these errors were encountered: