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.
- cd to the folder:
cd /path/to/request-payment
- run composer install ... details on getting composer here > https://getcomposer.org/
$ composer install
-
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 -
On https://dashboard.paystack.co/#/settings/developer set the callback url to the url to
http://localhost:8080/paystack-callback
-
Perform migrations then start the development server.
$ php artisan migrate
$ php artisan serve --port=8080
- Open http://localhost:8080 in the browser
- donate-init.php includes code that show how to initialize a transaction
- donate-conclude.php includes code that show how to verify a transaction
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.