opay-services/opay-sdk-php

Merchant Pre-Order API v3

v3.3.5 2021-05-27 02:40 UTC

This package is not auto-updated.

Last update: 2024-11-07 18:31:50 UTC


README

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

Setup:

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

Access sample codes & implementations right inside the http_example folder

Cashier
Transfer
Basic information
transfer
Charge
Balances
Transaction
Betting/Airtime Topup
Need Help? Feel free to open an issue.