Giter Site home page Giter Site logo

Comments (12)

UmarAbdullahi avatar UmarAbdullahi commented on May 20, 2024 7

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.

taghwo avatar taghwo commented on May 20, 2024 3

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.

frankly034 avatar frankly034 commented on May 20, 2024 2

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.

Mercyware avatar Mercyware commented on May 20, 2024

Check that you have the right namespace

example
use Unicodeveloper\Paystack\Paystack;

from laravel-paystack.

athousandklicks avatar athousandklicks commented on May 20, 2024

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.

codenaz avatar codenaz commented on May 20, 2024

Specify the full paystack class path in the form input value

from laravel-paystack.

ichtrojan avatar ichtrojan commented on May 20, 2024

from laravel-paystack.

mykinde avatar mykinde commented on May 20, 2024

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.

jgodstime avatar jgodstime commented on May 20, 2024

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.

aeadedoyin avatar aeadedoyin commented on May 20, 2024

So I just dropped a respone to @jgodstime Here

from laravel-paystack.

nonso07 avatar nonso07 commented on May 20, 2024

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.

ShuleSoft avatar ShuleSoft commented on May 20, 2024

Try to run php artisan cache:clear

from laravel-paystack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.