opay/merchant-cashier-php
Composer 安装命令:
composer require opay/merchant-cashier-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/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
- initiate: http_example/accept_payment/order.php
- status query: http_example/accept_payment/order_status.php
- cancel payment: http_example/accept_payment/order_cancel.php
- handling payment callback: http_example/accept_payment/callback.php
Transfer
Bank
- get supported countries: http_example/transfer/bank/get_countries.php
- get supported banks: http_example/transfer/bank/get_banks.php
- validate a bank account: http_example/transfer/bank/validate_account.php
- initiate transfer: http_example/transfer/bank/initiate.php
- status query: http_example/transfer/bank/order_status.php
Opay Wallet
- validate a user/customer: http_example/transfer/wallet/validate_user.php
- validate a merchant: http_example/transfer/wallet/validate_merchant.php
- initiate transfer: http_example/transfer/wallet/initiate.php
- status query: http_example/transfer/wallet/order_status.php
Need Help? Feel free to open an issue.
opay/merchant-cashier-php 适用场景与选型建议
opay/merchant-cashier-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.3k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2019 年 12 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 opay/merchant-cashier-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 opay/merchant-cashier-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: ISC
- 更新时间: 2019-12-06