PHPackages                             masdimdev/omnipay-ipay88 - 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. [Payment Processing](/categories/payments)
4. /
5. masdimdev/omnipay-ipay88

ActiveLibrary[Payment Processing](/categories/payments)

masdimdev/omnipay-ipay88
========================

iPay88 driver for Omnipay

1.1.1(1y ago)09MITPHPPHP ^8.1

Since Jan 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/masdimdev/omnipay-ipay88)[ Packagist](https://packagist.org/packages/masdimdev/omnipay-ipay88)[ RSS](/packages/masdimdev-omnipay-ipay88/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

iPay88 Omnipay Driver
=====================

[](#ipay88-omnipay-driver)

**Important:** This implementation is based on the **iPay88 Online Payment Switching Gateway (OPSG) Technical Specification, Version 1.6.4.4**. Ensure compatibility with your integration requirements and verify if this version aligns with the gateway setup provided by iPay88.

An Omnipay driver for integrating with the iPay88 payment gateway, supporting features such as `purchase`, `completePurchase`, and `requeryPayment`.

Getting Started
---------------

[](#getting-started)

Install via Composer:

```
composer require masdimdev/omnipay-ipay88
```

Set up the gateway:

```
$gateway = Omnipay::create('Ipay88');
$gateway->setMerchantCode('your-merchant-code');
$gateway->setMerchantKey('your-merchant-key');
```

Available Methods
-----------------

[](#available-methods)

### `purchase`

[](#purchase)

Redirects the user to the iPay88 payment page for completing a transaction.

**Required Data**

ParameterTypeDescription`transactionId``string`Unique transaction/order ID`amount``integer`Payment amount in cents (e.g., 100 = RM1.00)`description``string`Description of the product or service`userName``string`Payer's full name`userEmail``string`Payer's email address`userContact``string`Payer's contact number`returnUrl``string`URL to redirect the user after payment`notifyUrl``string`URL for iPay88 to notify transaction status**Optional Data**

ParameterTypeDescription`paymentId``integer`Payment ID. See [getPaymentIds()](#getPaymentIds) method for available payment IDs`remark``string`Remark#### Example

[](#example)

```
$response = $gateway->purchase([
    'transactionId' => 'ABC-12345',
    'amount'        => 100,
    'description'   => 'Test Product',
    'userName'      => 'John Doe',
    'userEmail'     => 'john@example.com',
    'userContact'   => '0123456789',
    'returnUrl'     => 'https://your-app.com/returnUrl',
    'notifyUrl'     => 'https://your-app.com/notifyUrl',
])->send();

if ($response->isRedirect()) {
    $response->redirect(); // Redirect to iPay88 payment page
}
```

#### Response Methods

[](#response-methods)

- `isRedirect()`: Indicates if the response contains a redirection URL (iPay88 payment page).
- `redirect()`: Redirect to iPay88 payment page.
- `getRedirectUrl()`: Gets the redirect destination url.
- `getRedirectMethod()`: Get the required redirect method (either GET or POST).
- `getRedirectData()`: Gets the redirect form data array, if the redirect method is POST.
- `getRedirectResponse()`: Returns a POST form to redirect the user to iPay88.

### `completePurchase`

[](#completepurchase)

Verifies the transaction status by handling the response from iPay88 after the user completes payment.

#### Example

[](#example-1)

```
$response = $gateway->completePurchase()->send();

if ($response->isSuccessful()) {
    echo 'Transaction successful';
} else {
    echo 'Transaction failed';
}
```

#### Response Methods

[](#response-methods-1)

- `isSuccessful()`: Indicates if the transaction was successfully verified.
- `isSignatureValid()`: Indicates if the response signature was valid.
- `getTransactionId()`: Returns the merchant transaction/order ID.
- `getTransactionReference()`: Returns the iPay88 transaction reference number.
- `getData()`: Returns the iPay88 transaction response.
- `getFullData()`: Returns mapped iPay88 transaction response.

### `requery`

[](#requery)

Checks the status of a transaction and returns the transaction status.

**Required Data**

ParameterTypeDescription`transactionId``string`Unique transaction/order ID`amount``integer`Payment amount in cents#### Example

[](#example-2)

```
$response = $gateway->requery([
    'transactionId' => 'ABC-12345',
    'amount'        => 100,
])->send();

if ($response->isSuccessful()) {
    echo 'Transaction successful: ' . $response->getMessage();
} else {
    echo 'Transaction failed: ' . $response->getMessage();
}
```

#### Response Methods

[](#response-methods-2)

- `isSuccessful()`: Indicates if the transaction was successful (`00`).
- `getMessage()`: Returns a human-readable message about the transaction status.
- `getCode()`: Returns the raw response code (e.g., `00`, `Record not found`, etc.).

### `requeryPayment`

[](#requerypayment)

Retrieves detailed information about specific transactions.

**Required Data**

ParameterTypeDescription`transactionId``string`Unique transaction/order ID`amount``integer`Payment amount in cents#### Example

[](#example-3)

```
$response = $gateway->requery([
    'transactionId' => 'ABC-12345',
    'amount'        => 100,
])->send();

if ($response->isSuccessful()) {
    echo 'Transaction successful: ' . $response->getMessage();
} else {
    echo 'Transaction failed: ' . $response->getMessage();
}
```

#### Response Methods

[](#response-methods-3)

- `isSuccessful()`: Indicates if the transaction was successfully verified.
- `getTransactionId()`: Returns the merchant transaction/order ID
- `getTransactionReference()`: Returns the iPay88 transaction reference number.
- `getData()`: Returns the iPay88 transaction response.
- `getFullData()`: Returns mapped iPay88 transaction response.

### `getPaymentIds`

[](#getpaymentids)

Get list of available payment method/payment ID.

#### Example

[](#example-4)

```
$gateway->getPaymentIds();
print_r($paymentMethods);
```

**Note:** Some payment methods may not be available for your merchant, please contact iPay88 for more information.

License
-------

[](#license)

This package is open-source software licensed under the MIT License.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance51

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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 ~51 days

Total

3

Last Release

375d ago

PHP version history (2 changes)1.0.2PHP ^8.0

1.1.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![masdimdev](https://avatars.githubusercontent.com/u/9777941?v=4)](https://github.com/masdimdev "masdimdev (9 commits)")

### Embed Badge

![Health badge](/badges/masdimdev-omnipay-ipay88/health.svg)

```
[![Health](https://phpackages.com/badges/masdimdev-omnipay-ipay88/health.svg)](https://phpackages.com/packages/masdimdev-omnipay-ipay88)
```

###  Alternatives

[omnipay/payflow

Payflow driver for the Omnipay payment processing library

20976.8k3](/packages/omnipay-payflow)[omnipay/payfast

PayFast driver for the Omnipay payment processing library

24626.9k3](/packages/omnipay-payfast)[aimeos/ai-payments

Payment extension for Aimeos e-commerce solutions

2160.7k](/packages/aimeos-ai-payments)[ptuchik/billing

Billing package for Laravel 5.5 supporting packages, plans, coupons, addons, payments and subscriptions

2921.2k](/packages/ptuchik-billing)[swiftmade/omnipay-everypay

(Unofficial) payment gateway for Every Pay (Estonia)

158.7k](/packages/swiftmade-omnipay-everypay)

PHPackages © 2026

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