didagu / laravel-paystack

An integration of Paystack API on PHP- Laravel
MIT License
3 stars 0 forks source link

Request Payment (Code at Yabacon/Laravel-Paystack-Sample)

A sample Laravel app that uses the Mabiola\Paystack-PHP-Lib to send payment requests (entreaties) to customers.

To run the sample

  1. cd to the folder:

    cd /path/to/request-payment
  2. run composer install ... details on getting composer here > https://getcomposer.org/

    $ composer install
  3. Edit .env providing your PAYSTACK_SECRET_KEY, database connection config and email sending config. Your paystack secret key can be gotten from > https://dashboard.paystack.co/#/settings/developer

  4. On https://dashboard.paystack.co/#/settings/developer set the callback url to the url to http://localhost:8080/access

  5. Perform migrations then start the development server.

    $ php artisan migrate
    $ php artisan serve --port=8080
  6. Open http://localhost:8080 in the browser

Files

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email yabacon.valley@gmail.com instead of using the issue tracker.