Skip to content

Ipaymu API PHP Class Library, Easiest way to integrate iPaymu payment gateway with your business

License

Notifications You must be signed in to change notification settings

frankyso/iPaymu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iPaymu-php

The easiest way to integrate your website into iPaymu payment gateway.

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/ipaymu

Usage

Initialization

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key', ['ureturn','unotify','ucancel']);

Set UReturn URL

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$iPaymu->setUreturn('https://your-website');

Set Unotify URL

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$iPaymu->setUnotify('https://your-website');

Set UCancel URL

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$iPaymu->setUcancel('https://your-website');

Check Balance

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$iPaymu->checkBalance();

Check API Key Validity

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$iPaymu->isApiKeyValid();

Add Product to Cart

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$cart = $iPaymu->cart()->add("id","product-name", 'product-quantity','product-price');

Remove Product From Cart

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$cart = $iPaymu->cart();
$cart->remove('product-id');

Checkout Transaction

in this package we use cart type transaction so you must checkout after adding your product

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$cart = $iPaymu->cart()->add("id","product-name", 'product-quantity','product-price');


$cart->checkout();

Check Transaction Status - @deprecated

To checking your account transaction status (deposit, transfer, send money).

to be honest, this endpoint still working, but somehow i cannot find transaction-id from any other endpoint.

<?php
use frankyso\iPaymu\iPaymu;

$iPaymu = new iPaymu('your-api-key');
$iPaymu->checkTransaction("transaction-id");

Authors

  • Franky So - Initial work - Konnco

See also the list of contributors who participated in this project.

About

Ipaymu API PHP Class Library, Easiest way to integrate iPaymu payment gateway with your business

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages