✓ Verified
✍️ Content Creation
✓ Enhanced Data
Paythefly
Create crypto payment & withdrawal links for your app.
- Rating
- 5 (373 reviews)
- Downloads
- 2,206 downloads
- Version
- 1.0.0
Overview
Create crypto payment & withdrawal links for your app.
Complete Documentation
View Source →
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
bash
npm install ethers tronweb
Create Payment Link
bash
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
bash
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
bash
node {baseDir}/scripts/query.mjs --type payment --serialNo "ORDER001"
node {baseDir}/scripts/query.mjs --type withdrawal --serialNo "WD001"
Options
--type: Order type:paymentorwithdrawal(required)--serialNo: Serial number to query (required)
Environment Variables
| Variable | Required | Description |
|---|---|---|
| PTF_PROJECT_ID | Yes | PayTheFlyPro project identifier |
| PTF_CONTRACT_ADDRESS | Yes | Project smart contract address |
| PTF_SIGNER_KEY | Yes | Private key for signing (dedicated wallet, no funds needed) |
| PTF_CHAIN_ID | Yes | Chain ID (56, 97, 1, tron:mainnet, tron:nile) |
| PTF_CUSTOM_RPC | No | Custom RPC endpoint |
Supported Chains
| Chain | chainId | Native Token |
|---|---|---|
| BSC Mainnet | 56 | BNB |
| BSC Testnet | 97 | BNB |
| Ethereum | 1 | ETH |
| TRON Mainnet | tron:mainnet | TRX |
| TRON Nile | tron:nile | TRX |
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
--tokenparameter
Installation
Terminal bash
openclaw install paythefly
Copied!
💻Code Examples
node {baseDir}/scripts/payment.mjs --amount "50" --serialNo "ORDER003" --redirect "https://mystore.com/success" --brand "MyStore"
node-basedirscriptspaymentmjs---amount-50---serialno-order003---redirect-httpsmystorecomsuccess---brand-mystore.txt
### Options
- `--amount <value>`: Payment amount (required)
- `--serialNo <value>`: Unique order number (required)
- `--token <address>`: Token contract address (omit for native token)
- `--redirect <url>`: URL to redirect after payment
- `--brand <name>`: Custom brand name
- `--lang <code>`: UI language (en, zh, ko, ja)
- `--deadline <hours>`: Signature validity hours (default: 24)
## Create Withdrawal Linknode {baseDir}/scripts/withdrawal.mjs --amount "50" --serialNo "WD002" --user "0xabcd..." --token "0x55d398..."
node-basedirscriptswithdrawalmjs---amount-50---serialno-wd002---user-0xabcd---token-0x55d398.txt
### Options
- `--amount <value>`: Withdrawal amount (required)
- `--serialNo <value>`: Unique withdrawal number (required)
- `--user <address>`: Recipient wallet address (required)
- `--token <address>`: Token contract address (omit for native)
- `--redirect <url>`: URL to redirect after withdrawal
- `--brand <name>`: Custom brand name
- `--lang <code>`: UI language
- `--deadline <hours>`: Signature validity hours (default: 24)
## Query Order Statusexample.sh
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"Tags
#image_and-video-generation
Quick Info
Category Content Creation
Model Claude 3.5
Complexity One-Click
Author seanlan
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install paythefly
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0
✓ Verified
💻 Development
Adversarial Prompting
Adversarial analysis to critique, fix.
🧠 Claude-Ready
)}
★ 4.6 (372)
↓ 28,222
v1.0.0