filippov / payment
DonatePay 支付模块
dev-master
2020-08-06 04:59 UTC
This package is auto-updated.
Last update: 2024-09-06 14:19:33 UTC
README
文档
方法
- GET:
/paymentmodule/getRateCurrency- 货币转换成卢布。
参数
code- 货币代码。例如:USD;
amount- 转换金额;
响应
status- 请求状态true或false;
rate_amount- 转换金额(仅当 status =true时);
- POST:
paymentmodule/sendPay- 向服务请求充值。
参数
method- 支付系统代码 [xyz,qwerty,oldpay];
amount- 付款金额 [xyz,qwerty,oldpay];
code- 货币代码。默认RUB;
name- 付款人姓名(对于xyz系统非必需);
响应
success- 成功时;
error- 错误时;
支付系统设置
- XYZ
请求URL: host.ru
/paymentmodule/notification/xyz;
秘密键在
env文件中指定为参数:XyzServiceKey;
- Qwerty
请求URL: host.ru
/paymentmodule/notification/qwerty;
秘密键在
env文件中指定为参数:QwertyServiceKey;
- OldPay
请求URL: host.ru
/paymentmodule/notification/oldpay;
秘密键在
env文件中指定为参数:OldPayServiceKey;