PHPackages                             opay/merchant-cashier-php - 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. opay/merchant-cashier-php

ActiveLibrary[API Development](/categories/api)

opay/merchant-cashier-php
=========================

Merchant Pre-Order API v3

v3.2.0(5y ago)112.4k12[3 issues](https://github.com/segsalerty2013/opay-merchant-cashier-php/issues)[1 PRs](https://github.com/segsalerty2013/opay-merchant-cashier-php/pulls)ISCPHPPHP &gt;=7.1CI failing

Since Dec 6Pushed 2y ago4 watchersCompare

[ Source](https://github.com/segsalerty2013/opay-merchant-cashier-php)[ Packagist](https://packagist.org/packages/opay/merchant-cashier-php)[ RSS](/packages/opay-merchant-cashier-php/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (3)Versions (9)Used By (0)

OPay Payment v3
---------------

[](#opay-payment-v3)

[![](https://github.com/actions/opay-merchant-cashier-php/workflows/.github/workflows/php.yml/badge.svg)](https://github.com/actions/opay-merchant-cashier-php/workflows/.github/workflows/php.yml/badge.svg)

PHP Library that wraps endpoints documented

##### Services available for merchants includes and not limited to:

[](#services-available-for-merchants-includes-and-not-limited-to)

- Cashier/Checkout - Get Paid with OPay
- Bank Transfer - Send money to any Nigerian bank account(s)
- OPay wallet Transfer - Send money to OPay USER/MERCHANT seamlessly

#### Installation:

[](#installation)

```
$ composer require opay/merchant-cashier-php
```

#### Setup:

[](#setup)

You need the library initialized as follows: (example in [http\_example/init.php](http_example/init.php) file)

```
use Opay\MerchantCashier;
use Opay\MerchantTransfer;

$endpointBaseUrl = 'http://sandbox-cashierapi.opayweb.com';
$pubKey = 'OPAYPUBxxxxxxxxxxxxx.xxxxxxxxxxxxx';
$prvKey = 'OPAYPRVxxxxxxxxxxxxx.xxxxxxxxxxxxx';
$merchantId = '256620xxxxxxxxxxxxx';

$merchantCashier = new MerchantCashier("environment-endpoint-url", "Public_Key", "Private_Key",   "your-merchant-id");
$merchantTransfer = new MerchantTransfer("environment-endpoint-url", "Public_Key", "Private_Key",   "your-merchant-id");
```

#### Examples:

[](#examples)

Access sample codes &amp; implementations right inside the `http_example` folder

##### Accept Payment

[](#accept-payment)

- initiate: [http\_example/accept\_payment/order.php](http_example/accept_payment/order.php)
- status query: [http\_example/accept\_payment/order\_status.php](http_example/accept_payment/order_status.php)
- cancel payment: [http\_example/accept\_payment/order\_cancel.php](http_example/accept_payment/order_cancel.php)
- handling payment callback: [http\_example/accept\_payment/callback.php](http_example/accept_payment/callback.php)

##### Transfer

[](#transfer)

###### Bank

[](#bank)

- get supported countries: [http\_example/transfer/bank/get\_countries.php](http_example/transfer/bank/get_countries.php)
- get supported banks: [http\_example/transfer/bank/get\_banks.php](http_example/transfer/bank/get_banks.php)
- validate a bank account: [http\_example/transfer/bank/validate\_account.php](http_example/transfer/bank/validate_account.php)
- initiate transfer: [http\_example/transfer/bank/initiate.php](http_example/transfer/bank/initiate.php)
- status query: [http\_example/transfer/bank/order\_status.php](http_example/transfer/bank/order_status.php)

###### Opay Wallet

[](#opay-wallet)

- validate a user/customer: [http\_example/transfer/wallet/validate\_user.php](http_example/transfer/wallet/validate_user.php)
- validate a merchant: [http\_example/transfer/wallet/validate\_merchant.php](http_example/transfer/wallet/validate_merchant.php)
- initiate transfer: [http\_example/transfer/wallet/initiate.php](http_example/transfer/wallet/initiate.php)
- status query: [http\_example/transfer/wallet/order\_status.php](http_example/transfer/wallet/order_status.php)

##### Need Help? Feel free to open an issue.

[](#need-help-feel-free-to-open-an-issue)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

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

Total

7

Last Release

2052d ago

Major Versions

1.0.4 → 3.0.02020-03-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3056269?v=4)[segsalerty](/maintainers/segsalerty)[@segsalerty](https://github.com/segsalerty)

---

Top Contributors

[![segsalerty2013](https://avatars.githubusercontent.com/u/5175923?v=4)](https://github.com/segsalerty2013 "segsalerty2013 (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/opay-merchant-cashier-php/health.svg)

```
[![Health](https://phpackages.com/badges/opay-merchant-cashier-php/health.svg)](https://phpackages.com/packages/opay-merchant-cashier-php)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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