-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
# 彩虹易支付对接教程 | ||
|
||
彩虹易支付是一个不少人都在使用的第三方聚合支付平台,本教程将会教你易支付如何对接Bepusdt。 | ||
当然在对接之前,你肯定先要搭建好对应的易支付网站和Bepusdt,相关教程此文档里面不再赘述。 | ||
从版本号`v1.14.0`开始,Bepusdt开始原生支持易支付对接,没有三方插件依赖,可直接对接使用;目前网上流传的易支付改版很多,可能做不到100%兼容,有问题可以issue反馈。 | ||
|
||
注意:本教程针对的易支付版本是`3041` | ||
,其它版本的不做保证,虽然大概率并没差别;如何查看易支付版本,源码文件`includes/common.php`,打开之后如图所示: | ||
## 🛠 对接参数说明 | ||
|
||
![epay-version](./images/epay-version.png) | ||
- 商户号(pid) 固定填写:`1000` | ||
- 商户密钥(key) 同`AUTH_TOKEN` | ||
- 支付类型(type) 可选值:`usdt.trc20`和`tron.trx` 两种支付方式 | ||
|
||
OK,现在假设你所有准备工作都已经准备好了且运行正常,步骤开始: | ||
|
||
## 操作步骤 | ||
|
||
1. 进入易支付后台,新增一种支付方式,调用值必须设置为usdt,显示名称无所谓,支持设备选PC+Mobile。 | ||
2. 进入易支付源码插件目录`plugins`,创建目录`bepusdt`(不能改名),再将[此插件文件](../plugins/epay/bepusdt_plugin.php) | ||
原封不动的上传到刚才创建的`bepusdt`目录。 | ||
3. 进入易支付后台,刷新支付插件之后便能看到一个`bepusdt`收款插件,随后按照正常流程,配置接口地址和Token添加支付通道启用即可。 | ||
注意事项:大部分商户系统的支付类型都是`wxpay`或者`alipay`,这里需要各方系统自行进行适配。 |
Binary file not shown.