PHPackages                             gstearmit/omnipay-molpaymy - 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. gstearmit/omnipay-molpaymy

ActiveLibrary

gstearmit/omnipay-molpaymy
==========================

MOLPay MY gateway for Omnipay payment processing library

067PHP

Since Sep 8Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Omnipay: MOLPayMY
=================

[](#omnipay-molpaymy)

**MOLPayMY driver for the Omnipay PHP payment processing library**

**MOLPayMY API Specification (Version 12.1: Updated on 12 April 2015)**.

Installation
------------

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "gstearmit/omnipay-molpaymy": "~2.0"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- MOLPayMY (MOLPayMY Payment)

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

Example
-------

[](#example)

### Create a purchase request

[](#create-a-purchase-request)

The example below explains how you can create a purchase request then send it.

```
$gateway = Omnipay::create('MOLPayMY');

$gateway->setCurrency('MYR');
$gateway->setEnableIPN(true); // Optional
$gateway->setLocale('en'); // Optional
$gateway->setMerchantId('test1234');
$gateway->setVerifyKey('abcdefg');

$options = [
    'amount' => '10.00',
    'card' => new CreditCard(array(
        'country' => 'MY',
        'email' => 'abc@example.com',
        'name' => 'Lee Siong Chan',
        'phone' => '0123456789',
    )),
    'description' => 'Test Payment',
    'transactionId' => '20160331082207680000',
    'paymentMethod' => 'credit', // Optional
];

$response = $gateway->purchase($options)->send();

// Get the MOLPayMY payment URL (https://www.onlinepayment.com.my/MOLPayMY/pay/...)
$redirectUrl = $response->getRedirectUrl();
```

### Complete a purchase request

[](#complete-a-purchase-request)

When the user submit the payment form, the gateway will redirect you to the return URL that you have specified in MOLPayMY. The code below gives an example how to handle the server feedback answer.

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

if ($response->isSuccessful()) {
    // Do something
    echo $response->getTransactionReference();
} elseif ($response->isPending()) {
    // Do something
} else {
    // Error
}
```

Out Of Scope
------------

[](#out-of-scope)

Omnipay does not cover recurring payments or billing agreements, and so those features are not included in this package. Extensions to this gateway are always welcome.

\------------- SET ENV ---------------------

1. ENV [https://www.onlinepayment.com.my/MOLPay/pay/test1234/?amount=10.00&amp;bill\_desc=Test+Payment&amp;bill\_email=abc%40example.com&amp;bill\_mobile=0123456789&amp;bill\_name=Lee+Siong+Chan&amp;channel=credit&amp;country=MY&amp;currency=MYR&amp;langcode=en&amp;orderid=20160331082207680000&amp;vcode=f3d5496b444ae3d11e09fa92a753ac60](https://www.onlinepayment.com.my/MOLPay/pay/test1234/?amount=10.00&bill_desc=Test+Payment&bill_email=abc%40example.com&bill_mobile=0123456789&bill_name=Lee+Siong+Chan&channel=credit&country=MY&currency=MYR&langcode=en&orderid=20160331082207680000&vcode=f3d5496b444ae3d11e09fa92a753ac60)
2.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/153b57763835ec70a99891b09b59be9ae515c9f7fc40e58d614646de569d3c9a?d=identicon)[gstearmit](/maintainers/gstearmit)

---

Top Contributors

[![phuchcws](https://avatars.githubusercontent.com/u/52060767?v=4)](https://github.com/phuchcws "phuchcws (3 commits)")

### Embed Badge

![Health badge](/badges/gstearmit-omnipay-molpaymy/health.svg)

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

PHPackages © 2026

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