Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.