1. Go to this page and download the library: Download frankyso/ipaymu library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
frankyso / ipaymu example snippets
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key', ['ureturn','unotify','ucancel']);
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$iPaymu->setUreturn('https://your-website');
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$iPaymu->setUnotify('https://your-website');
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$iPaymu->setUcancel('https://your-website');
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$iPaymu->checkBalance();
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$iPaymu->isApiKeyValid();
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$cart = $iPaymu->cart()->add("id","product-name", 'product-quantity','product-price');
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$cart = $iPaymu->cart();
$cart->remove('product-id');
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$cart = $iPaymu->cart()->add("id","product-name", 'product-quantity','product-price');
$cart->checkout();
use frankyso\iPaymu\iPaymu;
$iPaymu = new iPaymu('your-api-key');
$iPaymu->checkTransaction("transaction-id");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.