Skip to content

Latest commit

 

History

History
130 lines (79 loc) · 5.43 KB

README_en.md

File metadata and controls

130 lines (79 loc) · 5.43 KB

Upay (USDT Payment Gateway)

license GPLV3 version v1.1.2

🇨🇳 切换中文版本

Introduction

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!

Project Features

  • 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.

Install and run the program

  1. Linux server installation pagoda

    Pagoda Installation

    Environment: php7.4 + Apache (nginx) + mysql>=5.7

  2. Install gmp extension

    Step1:apt install libgmp-dev

    Step2: In the Pagoda panel, software store -> php7.4 -> Install extension -> Find gmp and install it

  3. Configure database

    Find the ddl.sql file in the root directory, enter mysql and execute the sql file to initialize the database.In .env Configure database connection parameters in

  4. Configure redis

    Install redis through the Pagoda panel and configure the redis connection parameters in .env

  5. The website root directory points to public

  6. Modify runtime permissions to 777

  7. Restart Apache (nginx)

  8. Fill in the secret of infura in the .env file

  9. Fill in the TRC20 and ERC20 deposit addresses in the .env file

  10. Test the merchant backend entrance:

    • Address: URL/merchant
    • Account: 测试商户
    • Password: 123456
  11. 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:

Execute scheduled 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.

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

Open source statement

  • 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.

Project Demonstration

https://app.upay.ink/#/payment/index?id=joz4QnND

API documentation

https://docs.upay.ink/api_v1/v/en

Contact us

Website:https://upay.ink

Telegram:https://t.me/UPay_ink

Email:support@UPay.ink