Download the PHP package aimensasi/fpx without Composer
On this page you can find all versions of the php package aimensasi/fpx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aimensasi/fpx
More information about aimensasi/fpx
Files in aimensasi/fpx
Package fpx
Short Description A laravel implementation for FPX payment service
License MIT
Homepage https://github.com/aimensasi/fpx
Informations about the package fpx
Very short description of the package
This package provides laravel implementations for Paynet FPX services.
Installation
You can install the package via composer:
Then run the publish command to publish the config files and support controller
This will generate the following files
- The config file with default setup for you to override
fpx.php
- The controller that will receive payment response and any host-to-host events
Http/Controllers/FPX/Controller.php
Setups
-
Add your redirect urls and your Seller and Exchange Id to the
.env
file. - After generating your certificates add them to your app. By default, we look for the certificates inside the following directives.
You can override the defaults by updating the config file.
- Run migration to add the banks table
Usage
-
First run the following commands to seed the banks list.
you should schedule the fpx:banks Artisan command to run daily:
- Add one the
x-fpx-pay
component with the following attributes
During testing, you can use the test-mode
attribute to override the provided amount to 'MYR 1.00'
- Handle the payment response in
Http/Controllers/FPX/Controller.php
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- AIMEN.S.A.SASI
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.