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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ipaymu-php-api

The Official iPaymu-php-api

Latest Stable Version Total Downloads

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

paymentChannel

va
cstore
cod
qris

Paramaters

Parameter Request Description Type Mandatory
account VA Number numeric Y
name Customer Name string Y
email 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


All versions of ipaymu-php-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
ext-curl Version *
phpunit/phpunit Version 9.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ipaymu/ipaymu-php-api contains the following files

Loading the files please wait ....