🇨🇳 切换中文版本
UPay (Full name: USDT Payment Gateway) is a USDT payment system written in PHP
language. Provide instant and stable USDT collection services. Supports privatized deployment and supports TRC20
and ERC20
networks.
UPay uses GPLv3 open source license!
-
Support privatized deployment.
-
Multiple wallet addresses circulate to improve order concurrency rate.
-
Support merchants to add their own wallet addresses and receive payments directly.
-
Asynchronous queue response, elegant and high performance.
-
Support USDT risk control system.
-
Powerful back-end financial management system.
-
Support privatized deployment.
-
Smart order collision avoidance system.
-
Support merchants to add their own wallet addresses and receive payments directly.
-
Asynchronous queue response, elegant and high performance.
-
Cryptocurrency risk warning system (to prevent merchants from receiving risky cryptocurrencies).
-
Covering the full range of payment scenarios.
-
Real-time exchange of multiple currencies.
-
Powerful backend management system.
-
Linux server installation pagoda
Environment: php7.4 + Apache (nginx) + mysql>=5.7
-
Install gmp extension
Step1:apt install libgmp-dev
Step2: In the Pagoda panel, software store -> php7.4 -> Install extension -> Find gmp and install it
-
Configure database
Find the
ddl.sql
file in the root directory, entermysql
and execute thesql
file to initialize the database.In.env
Configure database connection parameters in -
Configure redis
Install
redis
through the Pagoda panel and configure theredis
connection parameters in.env
-
The website root directory points to
public
-
Modify
runtime
permissions to 777 -
Restart Apache (nginx)
-
Fill in the
secret
ofinfura
in the.env
file -
Fill in the
TRC20
andERC20
deposit addresses in the.env
file -
Test the merchant backend entrance:
- Address: URL/merchant
- Account: 测试商户
- Password: 123456
-
Add scheduled tasks
The statistical task is set to be executed at 1 am every day, and other tasks are set to be executed every minute
See the table below for tasks:
Add the following 6 tasks in the scheduled tasks of the Pagoda panel. It is recommended that the time interval of the scheduled tasks is 1 minute.
-
Process the order
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH cd /www/wwwroot/Website; su -c "php think deal_order" -s /bin/sh www
-
Process payment
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH cd /www/wwwroot/Website; su -c "php think deal_withdraw" -s /bin/sh www
-
Order notification
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH cd /www/wwwroot/Website; su -c "php think order_notify" -s /bin/sh www
-
Payment notice
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH cd /www/wwwroot/Website; su -c "php think withdraw_notify" -s /bin/sh www
-
Statistics
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH cd /www/wwwroot/Website; su -c "php think statistics" -s /bin/sh www
-
Process recharge
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH cd /www/wwwroot/Website; su -c "php think deal_recharge" -s /bin/sh www
- UPay is an open source project and is only used for learning and communication!
- It cannot be used for any purpose that violates the laws and regulations of the People's Republic of China (including Taiwan Province) or the region where the user is located;
- The blockchain tokens involved in the project are for learning purposes, and the author does not agree with the financial attributes of the tokens derived from the blockchain;
- We also do not encourage or support any illegal activities such as "mining", "currency speculation", "virtual currency ICO";
- Virtual currency market behavior is not subject to regulatory requirements and control, investment transactions must be cautious, and it is only for learning blockchain knowledge.
https://app.upay.ink/#/payment/index?id=joz4QnND
https://docs.upay.ink/api_v1/v/en
Website:https://upay.ink
Telegram:https://t.me/UPay_ink
Email:support@UPay.ink