I. Resolve the domain name and access the server
Resolve the domain name to the server and use FinalShell to access the server.
Click to download FinalShell
If you don't know how to resolve domain names, please watch my other videos, many videos are available, this is relatively simple, I won't elaborate more.
Second, install the international version of Pagoda Panel (aaPanel panel)
aaPanel panel
In the linux environment, we directly use the pagoda international version of the opinion of the installation script, no matter what you are the West, the opinion script can be installed: [click on the official website
https://www.aapanel.com/new/download.html#install
After installing aaPanel, install the environment plug-ins needed for easy payment
Install the plug-ins as follows:
Nginx 1.21
MySQL 5.7
PHP 7.4
Third, upload the source code of Easy Payment, and more prompts to install.
After the installation is complete
Follow these steps
aaPanel panel > Website > Click the document root directory > Delete the files in the root directory > Then upload the source code to the root directory > Unzip it to the root directory.
Visit the domain name, according to the prompts, fill in the database information, the installation can be completed.
Fourth, upload epay_usdt plugin plugin, unzip and set up
After uploading the plugin, refresh the plugin list
会显示出USDT收款插件
添加支付方式到列表
调用值必须为usdt
添加完成后,就会显示支付方式USDT
新增支付接口
填写分配信息
添加完成后,配置秘钥
# USDT-TRC20 收款地址
收款的TRON钱包地址
# 交易汇率(CNY)
人民币和USDT-TRC20的兑换汇率,如果填的是AUTO,将自动从网站(coinmarketcap.com)获取市场汇率;如果需要自定义,请填入一个大于0的浮点数。
# 超时时长(秒)
订单支付的最大时长,推荐填1200(20分钟),该数字过小过大都会存在问题。
将通道设置为开启状态
保持一个未配置的支付方式开启(支付宝或者微信),并开启USDT
#保持开启未配置,是为了在支付过程中,强行调出USDT支付方式。
五、添加商家,获取易支付API
添加商家
登陆商家后台
点击个人资料,获取易支付所需要信息
#添加回调监控(宝塔环境)
拿到服务器php的执行路径,不出意外的话都是/usr/bin/php
建议使用全路径,视频里有讲原因
/www/server/php/74/bin/php
拿到插件文件cron.php对于服务器的绝对路径,比如我的是:/www/wwwroot/epay.xxxxxx.com/plugins/usdt/cron.php
需要监控的通道ID,比如我的是1,在支付后台支付通道可见。
将三个数据使用空格连起来,得到完整的监控脚本:
/usr/bin/php /www/wwwroot/epay.xxxxxx.com/plugins/usdt/cron.php 1
宝塔计划任务,添加一个shell脚本,执行周期为1分钟,脚本内容便是上面的监控脚本,添加即可。
手动执行一次,如果日志没有发现报错则运行正常。
七、测试调用
[file url="https://cosmilemoney.oss-cn-hangzhou.aliyuncs.com/user_files/1/publish/file/57024991_1719738251.zip" name="epay.zip" pass="" file_desc="" file_pay="0" pay_value="0"][file url="https://cosmilemoney.oss-cn-hangzhou.aliyuncs.com/user_files/1/publish/file/55578258_1719738341.zip" name="epay_usdt插件.zip" pass="" file_desc="" file_pay="0" pay_value="0"]