This is iPaymu-php for Laravel Framework
The best way to use this package is using composer
composer require frankyso/laravel-ipaymu
<?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
use iPaymu;
iPaymu::cart()->add("id","product-name", 'product-quantity','product-price');
iPaymu::cart()->checkout("transaction-comment");
function transaction(iPaymu $iPaymu){
$iPaymu->cart()->add("id","product-name", 'product-quantity','product-price');
$iPaymu->cart()->checkout("transaction-comment");
}
Other function same with origin Library
- Franky So - Initial work - Konnco
See also the list of contributors who participated in this project.