← 返回
效率工具 Key 中文

PayTheFlyPro

Create crypto payment & withdrawal links for your app. Works with BSC, Ethereum, TRON. Users pay via PayTheFlyPro gateway - you get shareable URLs with built...
为您的应用创建加密货币支付与提现链接,支持BSC、以太坊及TRON。用户通过PayTheFlyPro网关支付,您将获得内置...的可分享链接。
seanlan
效率工具 clawhub v1.0.8 1 版本 99831.1 Key: 需要
★ 2
Stars
📥 1,142
下载
💾 15
安装
1
版本
#latest

概述

PayTheFlyPro

Generate EIP-712 signed payment and withdrawal links for PayTheFlyPro crypto payment gateway. Supports BSC, Ethereum, and TRON networks.

Security Notice

The signer private key (PTF_SIGNER_KEY) is used ONLY for signing order authorization messages (EIP-712/TIP-712). It does NOT have access to any funds.

Recommendations:

  • Generate a dedicated wallet for signing - do NOT use your main wallet
  • The signer wallet does not need to hold any funds
  • Register the signer address in PayTheFlyPro dashboard as your project's authorized signer

Install Dependencies

npm install ethers tronweb

Create Payment Link

node {baseDir}/scripts/payment.mjs --amount "0.01" --serialNo "ORDER001"
node {baseDir}/scripts/payment.mjs --amount "100" --serialNo "ORDER002" --token "0x55d398326f99059fF775485246999027B3197955"
node {baseDir}/scripts/payment.mjs --amount "50" --serialNo "ORDER003" --redirect "https://mystore.com/success" --brand "MyStore"

Options

  • --amount : Payment amount (required)
  • --serialNo : Unique order number (required)
  • --token
    : Token contract address (omit for native token)
  • --redirect : URL to redirect after payment
  • --brand : Custom brand name
  • --lang : UI language (en, zh, ko, ja)
  • --deadline : Signature validity hours (default: 24)

Create Withdrawal Link

node {baseDir}/scripts/withdrawal.mjs --amount "100" --serialNo "WD001" --user "0x1234567890123456789012345678901234567890"
node {baseDir}/scripts/withdrawal.mjs --amount "50" --serialNo "WD002" --user "0xabcd..." --token "0x55d398..."

Options

  • --amount : Withdrawal amount (required)
  • --serialNo : Unique withdrawal number (required)
  • --user
    : Recipient wallet address (required)
  • --token
    : Token contract address (omit for native)
  • --redirect : URL to redirect after withdrawal
  • --brand : Custom brand name
  • --lang : UI language
  • --deadline : Signature validity hours (default: 24)

Query Order Status

node {baseDir}/scripts/query.mjs --type payment --serialNo "ORDER001"
node {baseDir}/scripts/query.mjs --type withdrawal --serialNo "WD001"

Options

  • --type : Order type: payment or withdrawal (required)
  • --serialNo : Serial number to query (required)

Environment Variables

VariableRequiredDescription
---------------------------------
PTF_PROJECT_IDYesPayTheFlyPro project identifier
PTF_CONTRACT_ADDRESSYesProject smart contract address
PTF_SIGNER_KEYYesPrivate key for signing (dedicated wallet, no funds needed)
PTF_CHAIN_IDYesChain ID (56, 97, 1, tron:mainnet, tron:nile)
PTF_CUSTOM_RPCNoCustom RPC endpoint

Supported Chains

ChainchainIdNative Token
------------------------------
BSC Mainnet56BNB
BSC Testnet97BNB
Ethereum1ETH
TRON Mainnettron:mainnetTRX
TRON Niletron:nileTRX

Notes

  • Each serial number can only be used once
  • Withdrawal signatures expire after deadline (default 24 hours)
  • For TRON, addresses use Base58 format (starting with T)
  • Native token payments omit the --token parameter

版本历史

共 1 个版本

  • v1.0.8 当前
    2026-03-29 07:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,846
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,302
productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 432 📥 103,787