PHPackages                             opay-services/opay-sdk-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. opay-services/opay-sdk-php

ActiveLibrary

opay-services/opay-sdk-php
==========================

Merchant Pre-Order API v3

v3.3.5(4y ago)6624ISCPHPPHP &gt;=7.1

Since Dec 6Pushed 4y agoCompare

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

READMEChangelogDependencies (3)Versions (15)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-services/opay-sdk-php
```

#### Setup:

[](#setup)

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

```
/**
 * init config file
 */

class Config implements ConfigInterface
{
    private $endpointBaseUrl = 'http://sandbox-cashierapi.opayweb.com';
    private $pubKey = 'OPAYPUBxxxxxxxxxxxxx.xxxxxxxxxxxxx';
    private $prvKey = 'OPAYPRVxxxxxxxxxxxxx.xxxxxxxxxxxxx';
    private $merchantId = '256620xxxxxxxxxxxxx';
}

(new TestTransaction())->test();
```

#### Examples:

[](#examples)

Access sample codes &amp; implementations right inside the [http\_example](%60http_example%60) folder

##### Cashier

[](#cashier)

- cashier example: [http\_example/cashier/Cashier.php](http_example/cashier/Cashier.php)
- handling payment callback: [http\_example/cashier/CashierCallback.php](http_example/cashier/CashierCallback.php)

##### Transfer

[](#transfer)

###### Basic information

[](#basic-information)

- Get supported countries、banks: [http\_example/miscellaneous/Miscellaneous.php](http_example/miscellaneous/Miscellaneous.php)
- Validate a user/customer: [http\_example/info/user/InfoUser.php](http_example/info/user/InfoUser.php)
- Validate a merchant: [http\_example/info/merchant/InfoMerchant.php](http_example/info/merchant/InfoMerchant.php)

###### transfer

[](#transfer-1)

- Transfer to OPay wallet: [http\_example/transfer/wallet/TransferToWallet.php](http_example/transfer/wallet/TransferToWallet.php)
- Batch transfer to OPay wallet: [http\_example/transfer/batch\_to\_wallet/TransferBatchToWallet.php](http_example/transfer/batch_to_wallet/TransferBatchToWallet.php)
- Transfer to Bank: [http\_example/transfer/bank/TransferToBank.php](http_example/transfer/bank/TransferToBank.php)
- Batch transfer to Bank: [http\_example/transfer/batch\_to\_bank/TransferBatchToBank.php](http_example/transfer/batch_to_bank/TransferBatchToBank.php)

##### Charge

[](#charge)

- Charge transaction: [http\_example/charge/Charge.php](http_example/charge/Charge.php)

##### Balances

[](#balances)

- Query your all accounts' balances : [http\_example/balances/Balances.php](http_example/balances/Balances.php)

##### Transaction

[](#transaction)

- Transaction test : [http\_example/transaction/TestTransaction.php](http_example/transaction/TestTransaction.php)
- Transaction example : [http\_example/transaction/html/initialize.html](http_example/transaction/html/initialize.html)
- BankTransfer transaction : [http\_example/transaction/bank\_transfer/BankTransfer.php](http_example/transaction/bank_transfer/BankTransfer.php)
- Ussd transaction : [http\_example/transaction/ussd/Ussd.php](http_example/transaction/ussd/Ussd.php)

##### Betting/Airtime Topup

[](#bettingairtime-topup)

- Example : [http\_example/bills/Bills.php](http_example/bills/Bills.php)

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

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 77.3% 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 ~44 days

Recently: every ~6 days

Total

13

Last Release

1810d ago

Major Versions

1.0.4 → 3.0.02020-03-29

### Community

Maintainers

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

---

Top Contributors

[![KnightJiang](https://avatars.githubusercontent.com/u/117444927?v=4)](https://github.com/KnightJiang "KnightJiang (34 commits)")[![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-services-opay-sdk-php/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k57.4M682](/packages/drush-drush)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[drupal/core-recommended

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

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

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