Looking to hire Laravel developers? Try LaraJobs

laravel-ipaymu maintained by frankyso

Description
iPaymu-PHP wrapper for Laravel
Author
Last update
2019/11/28 05:19 (dev-master)
License
Links
Downloads
257
Tags

Comments
comments powered by Disqus

Laravel iPaymu

This is iPaymu-php for Laravel Framework

Build Status Latest Stable Version Total Downloads Latest Unstable Version License StyleCI

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.