Skip to content

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

License

Notifications You must be signed in to change notification settings

yabacon/laravel-paystack-sample

Repository files navigation

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
  1. run composer install ... details on getting composer here > https://getcomposer.org/
$ composer install
  1. 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

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

  3. Perform migrations then start the development server.

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

Files

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages