PayGate Examples
E-commerce API
# Create PayGate for product catalog API
POST /api/v1/paygates
{
"targetUrl": "https://store.example.com/api/products",
"price": "0.005",
"credits": 10,
"method": "GET",
"title": "Product Catalog API",
"description": "Access to full product database with pricing"
}
# Generated PayGate: https://402ify.com/prod1234
# Users pay $0.005 for 10 API callsAI Model API
# Create PayGate for AI inference endpoint
POST /api/v1/paygates
{
"targetUrl": "https://ai.example.com/api/v1/generate",
"price": "0.02",
"credits": 1,
"method": "POST",
"title": "AI Text Generation",
"description": "High-quality text generation per request"
}
# Generated PayGate: https://402ify.com/ai567890
# AI agents pay $0.02 per inference callREST API with Multiple Methods
High-Speed Trading API
Premium Content
PayGate Management
Update PayGate Price
Update PayGate Details
Update PayGate Methods
Update Payment Address (Security)
Update Credits
Comprehensive Update Example
Payment Verification Settings
AssumeValid Option
The assumeValid parameter controls blockchain verification behavior:
Default (false) - Secure verification:
Payment is verified on blockchain after facilitator settlement
Slightly slower but ensures transaction is actually confirmed
Recommended for most use cases
Fast mode (true) - Skip verification:
Trusts facilitator settlement without blockchain confirmation
Faster payment processing (~200-1000ms saved)
Use when speed is critical and you trust the facilitator
When to use assumeValid: true:
High-frequency trading APIs
Real-time gaming transactions
Time-sensitive operations
When facilitator trust is established
When to use assumeValid: false (default):
Financial applications
High-value transactions
When security is paramount
Most general use cases
Last updated