opay-services/opay-sdk-php
Composer 安装命令:
composer require opay-services/opay-sdk-php
包简介
Merchant Pre-Order API v3
README 文档
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
- cashier example: http_example/cashier/Cashier.php
- handling payment callback: http_example/cashier/CashierCallback.php
Transfer
Basic information
- Get supported countries、banks: http_example/miscellaneous/Miscellaneous.php
- Validate a user/customer: http_example/info/user/InfoUser.php
- Validate a merchant: http_example/info/merchant/InfoMerchant.php
transfer
- Transfer to OPay wallet: http_example/transfer/wallet/TransferToWallet.php
- Batch transfer to OPay wallet: http_example/transfer/batch_to_wallet/TransferBatchToWallet.php
- Transfer to Bank: http_example/transfer/bank/TransferToBank.php
- Batch transfer to Bank: http_example/transfer/batch_to_bank/TransferBatchToBank.php
Charge
- Charge transaction: http_example/charge/Charge.php
Balances
- Query your all accounts' balances : http_example/balances/Balances.php
Transaction
- Transaction test : http_example/transaction/TestTransaction.php
- Transaction example : http_example/transaction/html/initialize.html
- BankTransfer transaction : http_example/transaction/bank_transfer/BankTransfer.php
- Ussd transaction : http_example/transaction/ussd/Ussd.php
Betting/Airtime Topup
- Example : http_example/bills/Bills.php
Need Help? Feel free to open an issue.
opay-services/opay-sdk-php 适用场景与选型建议
opay-services/opay-sdk-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 62 次下载、GitHub Stars 达 6, 最近一次更新时间为 2021 年 04 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 opay-services/opay-sdk-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 opay-services/opay-sdk-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 62
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: ISC
- 更新时间: 2021-04-01