Download the PHP package ipaymu/ipaymu-php-api without Composer
On this page you can find all versions of the php package ipaymu/ipaymu-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ipaymu/ipaymu-php-api
More information about ipaymu/ipaymu-php-api
Files in ipaymu/ipaymu-php-api
Package ipaymu-php-api
Short Description iPaymu PHP API Package Library
License GPL-3.0
Homepage https://github.com/ipaymu/ipaymu-php-api
Informations about the package ipaymu-php-api
The Official iPaymu-php-api
This is the Official PHP wrapper/library for iPaymu Payment API, that is compatible with Composer. Visit https://ipaymu.com for more information about the product and see documentation at https://ipaymu.com/en/api-documentation/ for more technical details.
Free signup here https://my.ipaymu.com/members/signup.htm to accept payment online now!
Installation
The best way to use this package is using composer
Usage
Requirement
First, get your apikey & va number from iPaymu dashboard.
Initialization
General
Check Balance
Check Transaction
Set URL
Set Buyer
Payment
There are 2 payment methods: Payment Direct & Payment Redirect, with the following parameters:
paymentMethod
- va => Virtual Account
- banktransfer => Transfer Bank
- cstore => Convenience Store
- cod => Cash on Delivery
- qris => QRIS
paymentChannel
va
- bag => Bank Artha Graha
- bca => Bank Central ASIA
- bni => Bank Negara Indonesia
- cimb => Bank Cimb Niaga
- mandiri => Bank Mandiri
- bmi => Bank Muamalat Indonesia
- bri => Bank Rakyat Indonesia
- bsi => Bank Syariah Indonesia
- permata => Bank Permata
- danamon => Bank Danamon
cstore
- indomaret
- alfamart
cod
- rpx
qris
- qris
Paramaters
Parameter Request | Description | Type | Mandatory |
---|---|---|---|
account | VA Number | numeric | Y |
name | Customer Name | string | Y |
Customer E-mail | string | Y | |
phone | Customer Phone | numeric | Y |
amount | Total Amount (price * qty) | numeric | Y |
paymentMethod | va, cstore, cod, qris | string | Y |
paymentChannel | "va:" bag, bca, bni, cimb, mandiri, bmi, bri, bsi, permata, danamon "cstore:" indomaret, alfamart "cod:" rpx "qris:" qris | string | Y |
notifyUrl | Return url when payment success | string | Y |
expired | Expiration in hour | numeric | N |
description | Text description | string | N |
referenceId | Shopping cart order id | string | N |
product | Product Name | [array] string | Y |
qty | Quantity | [array] numeric | Y |
price | Product Price | [array] numeric | Y |
weight | Product Weight | [array] numeric | Y |
length | Product Length | [array] numeric | Y |
width | Product Width | [array] numeric | Y |
height | Product Height | [array] numeric | Y |
deliveryArea | Postal Code Customer | numeric | Y |
deliveryAddress | Customer Address | string | Y |
pickupArea | Postal Code Shipper (Default Merchant Postal Code) | numeric | N |
pickupAddress | Shipper Address (Default Merchant Address) | string | N |
Add Product to Cart
First, please add product to shopping cart first before using this method
Set COD (Only if COD method)
Set Expired (for custom expired)
Set Reference ID (optional)
Set Payment Notes (optional)
Payment Direct
Payment direct method allows you to accept payment on your checkout page directly, this method works for any payment channel except for credit card.
Set Payment Method and Payment Channel
Payment Redirect
In order accepting credit card, you must use Payment Redirect method. Upon checkout, you will be redirected to iPaymu.com payment page for further payment processing.
Complete Code Example
Direct Payment Example
Redirect Payment Example