Download the PHP package krisnasw/faspay without Composer
On this page you can find all versions of the php package krisnasw/faspay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download krisnasw/faspay
More information about krisnasw/faspay
Files in krisnasw/faspay
Package faspay
Short Description A Laravel Package For Faspay Payment Gateway
License MIT
Informations about the package faspay
Faspay Payment Gateway Package for Laravel 5
Use Faspay as your payment gateway for your project? Then this package is for you. This is a laravel package to communicate with Faspay Payment Gateway API (currently only support DEBIT API)
Installation
To get started with Faspay, run this command or add the package to your composer.json
composer require krisnasw/faspay dev-master
Configuration
After installing the Faspay package, register the Krisnasw\Faspay\FaspayServiceProvider
in your config/app.php
file.
Also, add the Faspay
and Payment
facade to the aliases
array in your app
configuration file:
Finally publish the config file:
php artisan vendor:publish --provider="Krisnasw\Faspay\FaspayServiceProvider"
and change merchant_id
, merchant_name
, user_id
, and password
in the config/faspay.php
with yours.
How To Use
After all sets, use this Faspay package as follows:
To generate a custom billing number/code, you can create a class that implements BillingProfileInterface, for example:
and then pass it as a second argument of registerPayment()
method.
Bugs & Improvements
This package is far from perfect. It doesn't support BCA KlikPay yet. It doesn't support Faspay Credit API also. Feel free to report me any bug you found or send me pull requests.
All versions of faspay with dependencies
guzzlehttp/guzzle Version ^6.3
spatie/array-to-xml Version ^2.6
illuminate/support Version 5.4.*
nesbot/carbon Version ^1.22