opay/merchant-cashier-php

Merchant Pre-Order API v3


License
ISC

Documentation

OPay Payment v3

PHP Library that wraps endpoints documented https://documentation.opayweb.com/

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:

$ composer require opay/merchant-cashier-php

Setup:

You need the library initialized as follows: (example in 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:

Access sample codes & implementations right inside the http_example folder

Accept Payment
Transfer
Bank
Opay Wallet
Need Help? Feel free to open an issue.