PHPackages                             steevenz/ipaymu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. steevenz/ipaymu

ActivePhp-class[API Development](/categories/api)

steevenz/ipaymu
===============

Ipaymu API PHP Class Library

v1.0.2(8y ago)8281↓100%10GNU General Public License v3.0 LicensePHPPHP &gt;=5.6.0

Since Jan 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/steevenz/ipaymu)[ Packagist](https://packagist.org/packages/steevenz/ipaymu)[ RSS](/packages/steevenz-ipaymu/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Ipaymu (Payment Gateway Indonesia)
==================================

[](#ipaymu-payment-gateway-indonesia)

[![Latest Stable Version](https://camo.githubusercontent.com/fb5a805b996e7b8c1f56f2e91b9a9defdce8b6fd53e62d07f3b748400c281fc0/68747470733a2f2f706f7365722e707567782e6f72672f7374656576656e7a2f697061796d752f762f737461626c65)](https://packagist.org/packages/steevenz/ipaymu) [![Total Downloads](https://camo.githubusercontent.com/a0cd1f97b1be22f1038c193c6adc49b7f8a1bd0f57367e7987f503b36b0b58ec/68747470733a2f2f706f7365722e707567782e6f72672f7374656576656e7a2f697061796d752f646f776e6c6f616473)](https://packagist.org/packages/steevenz/ipaymu) [![Latest Unstable Version](https://camo.githubusercontent.com/263d3a1c1061e5835204d680bf62228f8b288497a5a5a864875ee01bffbe8aec/68747470733a2f2f706f7365722e707567782e6f72672f7374656576656e7a2f697061796d752f762f756e737461626c65)](https://packagist.org/packages/steevenz/ipaymu) [![License](https://camo.githubusercontent.com/d22632e9095242cd4958af8b590021a01070776833650d35af4bcd5d408b4cd6/68747470733a2f2f706f7365722e707567782e6f72672f7374656576656e7a2f697061796d752f6c6963656e7365)](https://packagist.org/packages/steevenz/ipaymu)

[Ipaymu](http://ipaymu.com) API PHP Class Library berfungsi untuk melakukan request API [Ipaymu](http://ipaymu.com).

Instalasi
---------

[](#instalasi)

Cara terbaik untuk melakukan instalasi library ini adalah dengan menggunakan [Composer](https://packagist.org/packages/steevenz/ipaymu)

```
composer require steevenz/ipaymu

```

Penggunaan
----------

[](#penggunaan)

```
use Steevenz\Ipaymu;

/*
 * --------------------------------------------------------------
 * Inisiasi Class Ipaymu
 * --------------------------------------------------------------
 */
 // Untuk menggunakan API Ipaymu Account saja.
 $ipaymu = new Ipaymu();
 $ipaymu->setApiKey('API_KEY_ANDA');

 // Untuk menggunakan API Ipaymu Account dan Webstore.
 $ipaymu = new Ipaymu([
    'apiKey' => 'API_KEY_ANDA',

    // Konfigurasi Url diperlukan untuk melakukan transaksi ke ipaymu
    'url' => [
        'return' => 'http://www.domainanda.com/terimakasih.html'
        'notify' => ' http://www.domainanda.com/notify-ipaymu.php'
        'cancel' => 'http://www.domainanda.com/batal.html'
    ]
 ]);

/*
 * --------------------------------------------------------------
 * Mendapatkan informasi akun Ipaymu
 *
 * @return array
 * --------------------------------------------------------------
 */
$account = $ipaymu->getAccount();

/*
 * --------------------------------------------------------------
 * Cek Saldo Akun
 * Untuk mengecek jumlah saldo terakhir Anda.
 *
 * @return int
 * --------------------------------------------------------------
 */
$balance = $ipaymu->checkAccountBalance();

/*
 * --------------------------------------------------------------
 * Cek Status Akun
 * Untuk mengecek status akun iPaymu.
 *
 * @return string
 * --------------------------------------------------------------
 */
$status = $ipaymu->checkAccountStatus();

/*
 * --------------------------------------------------------------
 * Cek Transaksi
 *
 * @param string $trxId Kode Unik Transaksi.
 * @return array|bool Returns FALSE if failed.
 * --------------------------------------------------------------
 */
$transaction = $ipaymu->checkTransaction('IDX-1234567890');

/*
 * --------------------------------------------------------------
 * Melakukan transaksi pembayaran dengan single produk
 *
 * @return array|bool   Returns FALSE if failed or returns array contains
 *                      Ipaymu transaction Url.
 * --------------------------------------------------------------
 */
$ipaymu->addTransaction([
   'id' => 'INV-1234567890',
   'product' => [
       'name' => 'Shoes'
       'price' => 10000,
       'quantity' => 1,
       'description' => 'Amazing Shoes'
   ]
]);

/*
 * --------------------------------------------------------------
 * Melakukan transaksi pembayaran PayPal dengan single produk
 *
 * @return array|bool   Returns FALSE if failed or returns array contains
 *                      Ipaymu transaction Url.
 * --------------------------------------------------------------
 */
$ipaymu->addTransaction([
   'id' => 'INV-1234567890',
   'product' => [
       'name' => 'Shoes'
       'price' => 10000,
       'price_usd' => 1, // Wajib menyertakan harga dalam kurs USD
       'quantity' => 1,
       'description' => 'Amazing Shoes'
   ]
], 'akunpaypalku@domain.com');

/*
 * --------------------------------------------------------------
 * Melakukan transaksi pembayaran dengan multi produk
 *
 * @return array|bool   Returns FALSE if failed or returns array contains
 *                      Ipaymu transaction Url.
 * --------------------------------------------------------------
 */
 $ipaymu->addTransaction([
      'id' => 'INV-1234567890',
      'products' => [
          [
              'name' => 'Shoes',
              'price' => 10000,
              'quantity' => 1,
              'description' => 'Amazing Shoes'
          ],
          [
              'name' => 'Bag',
              'price' => 5000,
              'quantity' => 2,
              'description' => 'Amazing Bag'
          ]
      ]
 ]);

 /*
  * --------------------------------------------------------------
  * Melakukan transaksi pembayaran PayPal dengan multi produk
  *
  * @return array|bool   Returns FALSE if failed or returns array contains
  *                      Ipaymu transaction Url.
  * --------------------------------------------------------------
  */
  $ipaymu->addTransaction([
       'id' => 'INV-1234567890',
       'products' => [
           [
               'name' => 'Shoes',
               'price' => 10000,
               'price_usd' => 1, // Wajib menyertakan harga dalam kurs USD
               'quantity' => 1,
               'description' => 'Amazing Shoes'
           ],
           [
               'name' => 'Bag',
               'price' => 5000,
               'price_usd' => 1, // Wajib menyertakan harga dalam kurs USD
               'quantity' => 2,
               'description' => 'Amazing Bag'
           ]
       ]
  ], 'akunpaypalku@domain.com');

/*
 * --------------------------------------------------------------
 * Mendapatkan original response object.
 * --------------------------------------------------------------
 */
 $response = $ipaymu->getResponse();

/*
 * --------------------------------------------------------------
 * Mendapatkan informasi error.
 * --------------------------------------------------------------
 */
 $errors = $ipaymu->getErrors();
```

Untuk keterangan lebih lengkap dapat dibaca di [Wiki](https://github.com/steevenz/ipaymu/wiki)

Ide, Kritik dan Saran
---------------------

[](#ide-kritik-dan-saran)

Jika anda memiliki ide, kritik ataupun saran, anda dapat mengirimkan email ke [steevenz@stevenz.com](mailto:steevenz@steevenz.com). Anda juga dapat mengunjungi situs pribadi saya di [steevenz.com](http://steevenz.com)

Bugs and Issues
---------------

[](#bugs-and-issues)

Jika anda menemukan bugs atau issue, anda dapat mempostingnya di [Github Issues](http://github.com/steevenz/ipaymu/issues).

Requirements
------------

[](#requirements)

- PHP 5.6+
- [Composer](https://getcomposer.org)
- [O2System Curl](http://github.com/o2system/curl)

Referensi
---------

[](#referensi)

Untuk mengetahui lebih lanjut mengenai RajaOngkir API, lihat di [Dokumentasi API Ipaymu](http://ipaymu.com/dokumentasi-api).

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

3

Last Release

2944d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2ac781bdba53fdce5ac7a9f090a4afd42b18766646036370661ffefde7811de?d=identicon)[steevenz](/maintainers/steevenz)

---

Top Contributors

[![steevenz](https://avatars.githubusercontent.com/u/218405?v=4)](https://github.com/steevenz "steevenz (8 commits)")

---

Tags

apiipaymu

### Embed Badge

![Health badge](/badges/steevenz-ipaymu/health.svg)

```
[![Health](https://phpackages.com/badges/steevenz-ipaymu/health.svg)](https://phpackages.com/packages/steevenz-ipaymu)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22778.7k](/packages/m165437-laravel-blueprint-docs)[steevenz/rajaongkir

Advanced RajaOngkir API PHP Class

598.5k1](/packages/steevenz-rajaongkir)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
