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!
- Go to http://yourdomain/example for testing the Payment from Fastpay site.
For listening to the payment event, open your app/Providers directory and add your own listener for the FastpayPaymentComplete event class.
- Initial Release
- I don't have any live Fastpay store. So could not test that. Please open an issue if you face any problem with LIVE payments so I can test with you and fix that.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.