Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frankyso/ipaymu
Ipaymu API PHP Class Library, Easiest way to integrate iPaymu payment gateway with your business
https://github.com/frankyso/ipaymu
composer composer-package ipaymu ipaymu-api payment-gateway php php-li
Last synced: 26 days ago
JSON representation
Ipaymu API PHP Class Library, Easiest way to integrate iPaymu payment gateway with your business
- Host: GitHub
- URL: https://github.com/frankyso/ipaymu
- Owner: frankyso
- License: gpl-3.0
- Created: 2016-05-26T10:06:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T03:18:17.000Z (almost 5 years ago)
- Last Synced: 2024-08-16T13:42:08.364Z (3 months ago)
- Topics: composer, composer-package, ipaymu, ipaymu-api, payment-gateway, php, php-li
- Language: PHP
- Homepage:
- Size: 49.8 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
iPaymu-php
==============The easiest way to integrate your website into [iPaymu payment gateway](https://ipaymu.com).
[![Build Status](https://travis-ci.org/frankyso/ipaymu.svg?branch=master)](https://travis-ci.org/frankyso/ipaymu)
[![Latest Stable Version](https://poser.pugx.org/frankyso/ipaymu/v/stable)](https://packagist.org/packages/frankyso/ipaymu)
[![Total Downloads](https://poser.pugx.org/frankyso/ipaymu/downloads)](https://packagist.org/packages/frankyso/ipaymu)
[![Latest Unstable Version](https://poser.pugx.org/frankyso/ipaymu/v/unstable)](https://packagist.org/packages/frankyso/ipaymu)
[![License](https://poser.pugx.org/frankyso/ipaymu/license)](https://packagist.org/packages/frankyso/ipaymu)
[![StyleCI](https://github.styleci.io/repos/59740344/shield?branch=master)](https://github.styleci.io/repos/59740344)## Installation
The best way to use this package is using [composer](https://getcomposer.org/)
```
composer require frankyso/ipaymu
```## Usage
### Initialization
```php
setUreturn('https://your-website');
```### Set Unotify URL
```php
setUnotify('https://your-website');
```### Set UCancel URL
```php
setUcancel('https://your-website');
```### Check Balance
```php
checkBalance();
```### Check API Key Validity
```php
isApiKeyValid();
```### Add Product to Cart
```php
cart()->add("id","product-name", 'product-quantity','product-price');
```### Remove Product From Cart
```php
cart();
$cart->remove('product-id');
```### Checkout Transaction
in this package we use cart type transaction so you must checkout after adding your product
```php
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
checkTransaction("transaction-id");
```## Authors
* **Franky So** - *Initial work* - [Konnco](https://github.com/konnco)
See also the list of [contributors](https://github.com/frankyso/iPaymu/contributors) who participated in this project.