Comments (12)
I had the same problem, all you need to do is go to config/app.php under providers add Unicodeveloper\Paystack\PaystackServiceProvider::class,
add 'Paystack' => Unicodeveloper\Paystack\Facades\Paystack::class,
to aliases
then run php artisan vendor:publish --provider="Unicodeveloper\Paystack\PaystackServiceProvider"
again.
from laravel-paystack.
On laravel 5.6 you have to manually add the service to config and if after adding the service provider class and alias you still get the error,hit the config:cache artisan command it should work
from laravel-paystack.
I had same issue too, my problem was that paystack did not fully download to my project. Make sure its there and that the unicodeveloper folder is in the vendor's folder after installing the paystack from composer.
In Laravel 5.6 publish does not work, you'll have to add the provider and the alias in the config.app file manually.
from laravel-paystack.
Check that you have the right namespace
example
use Unicodeveloper\Paystack\Paystack;
from laravel-paystack.
I am getting the class 'Paystack' not found error, and this is happening in the form: The code snippet is seen below:
. . . <input type="hidden" name="reference" value="{{ Paystack::genTranxRef() }}"> {{-- required --}}
.
.
.
from laravel-paystack.
Specify the full paystack class path in the form input value
from laravel-paystack.
from laravel-paystack.
Client error: POST http://localhost/infyom-paystack/public/payment/transaction/initialize
resulted in a 404 Not Found
response:\n
transaction/initialize`
Test webhock URL -> is set to payement url
from laravel-paystack.
Am getting the same error Class 'Paystack' not found
in PaymentController.php (line 23)
I have tried @UmarAbdullahi's suggestion but still getting the same error. I am using laravel 5.4. Please any fix for this?
from laravel-paystack.
So I just dropped a respone to @jgodstime Here
from laravel-paystack.
On laravel 5.6 you have to manually add the service to config and if after adding the service provider class and alias you still get the error,hit the config:cache artisan command it should work
wow thumb up sir, config:cache artisan command worked for my laravel 5.4
from laravel-paystack.
Try to run php artisan cache:clear
from laravel-paystack.
Related Issues (20)
- Using $this when not in object context HOT 4
- please i need help HOT 3
- POST https://api.paystack.co/transaction/initialize` resulted in a `404 Not Found` response: HOT 1
- The paystack token has expired. Please refresh the page and try again. HOT 1
- Is Paystack compactible with Laravel 9? HOT 5
- Convert naira to kobo HOT 2
- Client error: `POST https://api.paystack.co/customer` resulted in a 400 Bad Request response metadata must be of type object
- Undefined type 'Unicodeveloper\Paystack\Facades\Paystack' HOT 4
- Laravel 10.x compatibility
- return Paystack::getAuthorizationUrl($data)->redirectNow(); HOT 5
- Paystack Payment Page Redirection Issue HOT 7
- Unable to redirect to paystack payment gateway. HOT 1
- Paystack Subscription Creation - Recurring Payment HOT 2
- 403 Forbidden HOT 3
- Paystack Does Not Support Local Environment Tests Since http access is prohibited HOT 2
- Customer wanted to pay ngn3000 paystack pulled ngn90000 HOT 7
- [Urgent attention!] Why is the Paystack::getAuthorizationUrl()->redirectNow(); not triggering?
- Unauthorized HOT 2
- Fetch Transaction based on reference
- Upgrade the package to meet the latet version of PHP which is 8.2 as of today
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-paystack.