camoo/camoo-pay
最新稳定版本:1.0.1
Composer 安装命令:
composer require camoo/camoo-pay
包简介
CamooPay plugin for mobile Money aggregation
关键字:
README 文档
README
Installation
You can install this plugin into your PHP application using composer.
The recommended way to install composer packages is:
composer require camoo/camoo-pay
Usage
use CamooPay\Exception\CamooPayCashoutException; use CamooPay\Lib\CashOut; $cashOut = new CashOut('token', 'secret', 'orange'); $phoneNumber = '690000000'; $amount = 850; $customerEmail = 'end-customer@email.cm'; try { $payment $cashOut->charge($phoneNumber, $amount, $customerEmail); } catch (CamooPayCashoutException $exception) { $message = $exception->getMessage(); echo $message } var_dump($payment); // Now verify the status $transactionNumber = $payment['ptn']; $checkPayment = new \CamooPay\Lib\CheckPayment('token', 'secret'); $verify = $checkPayment->check($transactionNumber); var_dump($verify);
统计信息
- 总下载量: 171
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-14