karwankhalid/fastpay is a Laravel package for laravel package for fastpay payment gateway api.
It currently has 4 GitHub stars and 13 downloads on Packagist.
Install it with composer require karwankhalid/fastpay.
Discover more Laravel packages by karwankhalid
or browse all Laravel packages to compare alternatives.
Last updated
Laravel Package for the Fastpay Payment Gateway API
You will need composer to install Fastpay. Then publish assets and migrate the table for payment records.
composer require "KarwanKhalid/Fastpay" --no-cache
php artisan vendor:publish
php artisan migrate
I haven't tested it below Laravel 5.5 . If you wanna try in below Laravel 5.5 , you will need to edit config/app.php and add the following line in the providers section.
KarwanKhalid\Fastpay\FastpayServiceProvider::class
Add the following constants in the .env file of your Laravel Project.
For Live
API_DOMAIN_URL=https://secure.fast-pay.cash
MERCHANT_MOBILE_NO=PUT_YOUR_MERCHANT_MOBILE_NO
STORE_PASSWORD=PUT_YOUR_STORE_PASSWORD
IS_LOCALHOST=false
For SANDBOX
API_DOMAIN_URL=https://dev.fast-pay.cash
MERCHANT_MOBILE_NO="+9641684405075"
STORE_PASSWORD="Password1@"
IS_LOCALHOST=true
Clear config cache if required.
php artisan config:cache
That's it! Enjoy!
For listening to the payment event, open your app/Providers directory and add your own listener for the FastpayPaymentComplete event class.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.