frankyso / laravel-ipaymu
iPaymu-PHP wrapper for Laravel
v1.0
2019-11-25 13:20 UTC
Requires
- php: >=7.2.0
- frankyso/ipaymu: ^1.0.3
Requires (Dev)
- fzaninotto/faker: ^1.9@dev
- mockery/mockery: ^1.2.3
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.3
This package is auto-updated.
Last update: 2024-10-28 15:13:46 UTC
README
This is iPaymu-php for Laravel Framework
Installation
The best way to use this package is using composer
composer require frankyso/laravel-ipaymu
Usage
Initialization
<?php use iPaymu; $iPaymu = new iPaymu('your-api-key', ['ureturn','unotify','ucancel']);
if you dont use package discovery add this Facade to into your app config aliases
'iPaymu'=>\frankyso\iPaymu\Laravel\iPaymuFacade::class
and don't forget to publishing vendor
php artisan vendor:publish
How to Use
With Facade
use iPaymu; iPaymu::cart()->add("id","product-name", 'product-quantity','product-price'); iPaymu::cart()->checkout("transaction-comment");
Without Facade
function transaction(iPaymu $iPaymu){ $iPaymu->cart()->add("id","product-name", 'product-quantity','product-price'); $iPaymu->cart()->checkout("transaction-comment"); }
Note
Other function same with origin Library
Authors
- Franky So - Initial work - Konnco
See also the list of contributors who participated in this project.