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

"message": "Class 'App\\Http\\Controllers\\Yabacon\\Paystack' not found", #20

Open
ishgem opened this issue Nov 15, 2018 · 1 comment
Open
Labels

Comments

@ishgem
Copy link

ishgem commented Nov 15, 2018

Am surely new to Laravel... I wanted to integrate this package but the error is "message": "Class 'App\Http\Controllers\Yabacon\Paystack' not found",.
And I have used the namespace.
I will be glad if someone could help me out.
Thanks!

@jgodstime
Copy link

Change this
$paystack = new Yabacon\Paystack(SECRET_KEY);
to this
$paystack = new \Yabacon\Paystack(SECRET_KEY);

Take not of the \ before the Yabacon indicating the root
With that you are good to go.

@yabacon yabacon locked as resolved and limited conversation to collaborators Feb 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants