Payment links provide a simple way to accept stablecoin payments without requiring customers to have a Blockradar account or integrate with your application directly.
Introduction
Payment links are shareable URLs that allow anyone to send stablecoin payments to your wallet. They’re perfect for:- E-commerce: Send to customers for product purchases
- Invoicing: Include in invoices for services rendered
- Donations: Share on social media or websites
- Marketplace payments: Facilitate peer-to-peer transactions
- Subscription billing: Recurring payment collection
How Payment Links Work
Creation
Create a payment link with specific parameters like amount, name, description, and payment limits.
Sharing
Share the generated URL with your customers through email, messaging, or embed it on your website.
Payment
Customers click the link, enter their payment details, and complete the transaction.
Confirmation
You receive webhook notifications and can track payment status in real-time.
Payment Link Features
- Customizable Parameters: Set amount, description, payment limits, and metadata
- Shareable URLs: Generate unique payment links for each transaction
- Customer Pre-filling: Pre-populate customer details via URL query parameters
- Real-time Tracking: Monitor payment status and receive webhook notifications
- Multi-network Support: Accept payments across different blockchain networks
- Auto-sweep Integration: Funds automatically consolidated to master wallet
Multi-Asset Support
- USDT, USDC, DAI, BUSD across multiple blockchains
- Ethereum, BSC, Polygon, Base, Arbitrum, Optimism, Tron, Solana, Celo
- Automatic conversion and routing for optimal user experience
Flexible Configuration
- Fixed amounts for specific products/services
- Variable amounts for donations or custom payments
- Payment limits to ensure timely payments
- Custom metadata for tracking and analytics
- Webhook notifications for real-time updates
Security & Compliance
- AML screening on all incoming payments
- Address validation and verification
- Fraud detection and prevention
- Regulatory compliance across jurisdictions
Payment Flow
1. Payment Link Creation
When you create a payment link, Blockradar returns a unique payment URL:2. Customer Pre-filling with Query Parameters
You can enhance the payment URL with query parameters to automatically pre-fill customer details on the payment page:name
- Customer’s name (appears on payment page)email
- Customer’s email addressreference
- Custom reference that will be included in transaction responsesamount
- Pre-fill the payment amount (overrides link’s default amount if set)redirectUrl
- URL to redirect to after payment completion
3. Post-Payment Redirect
When aredirectUrl
is provided, customers will be automatically redirected to your specified URL after payment processing is complete. The redirect URL will include the following query parameters:
Redirect Query Parameters:
status
- Payment status (success
,failed
,pending
)tx_reference
- Transaction reference IDreference
- Your custom reference (if provided)slug
- Payment link identifier
The redirect only occurs after payment processing is complete. If no
redirectUrl
is provided, customers will see the default payment completion page.4. Amount Configuration
Payment links support two amount modes: Fixed Amount (Pre-set)- When you specify an
amount
during creation, customers cannot modify the payment amount - Ideal for specific products or services with set pricing
- Example: Product purchase for exactly $99.99
- When no
amount
is specified, customers can enter their own payment amount - Perfect for donations, tips, or flexible pricing scenarios
- Customers see an amount input field on the payment page
4. Payment Processing
Customers visit the payment link, review pre-filled details, and complete the transaction using their preferred stablecoin.5. Transaction Response
Thereference
parameter from the URL will be included in the transaction response and webhook payloads, allowing you to link payments back to your internal systems.
Try It Out
Experience Blockradar payment links firsthand with our live demo: 🔗 Demo Payment Link: https://pay.blockradar.co/demo This demo showcases:- Payment Flow: Complete customer experience from link to completion
- UI/UX: Modern, intuitive payment interface
- Stablecoin Options: Multiple payment methods and networks
- Real-time Updates: Live transaction status and confirmations
The demo payment link is for testing purposes only. No real transactions will be processed.
Creating Payment Links
Basic Payment Link
Create a simple payment link for a fixed amount:Variable Amount Payment Link
Allow customers to choose their payment amount:Payment Link with File Upload
Include a file (e.g., invoice, product image) with your payment link using form-data: Form Data Fields:name
: Service Invoicedescription
: Web development services - January 2024amount
: 1500.00redirectUrl
: https://company.example.com/payment-successsuccessMessage
: Payment received! We’ll start working on your project.metadata
: invoice_id: INV-2024-001, service: web_developmentfile
: [cover.png] (file upload)
When including file uploads, use form-data instead of JSON. The file will be stored and accessible via the payment link.
Payment Link Parameters
Required Parameters
Parameter | Type | Description |
---|---|---|
name | string (max: 250) | The name of the payment link |
Optional Parameters
Parameter | Type | Description |
---|---|---|
description | string (max: 250) | A description of the payment link |
slug | string (max: 250) | A unique identifier (URL-friendly). Must match regex: ^[a-zA-Z0-9-]+$ |
amount | string | The amount for the payment link. Must be a valid string number > 0 |
redirectUrl | string (URL) | The URL to redirect the user after payment. Must include http:// or https:// |
successMessage | string (max: 500) | Message shown when the payment succeeds |
inactiveMessage | string (max: 500) | Message shown when the payment link is inactive |
metadata | object (JSON string) | Custom metadata as key-value pairs (string or number). Must be sent as a JSON string in form-data |
paymentLimit | number (min: 1) | Maximum number of payments allowed for this link |
file | file | An optional file upload (e.g., image or document) attached to the payment link |
Payment Flow
Customer Experience
-
Click Payment Link
- Customer receives and clicks the payment link
- Link opens to a secure payment page
-
Select Payment Method
- Choose from available stablecoins
- Select preferred blockchain network
- Enter payment amount (if variable)
-
Complete Payment
- Customer confirms transaction details
- Payment is processed on the blockchain
- Real-time confirmation and status updates
-
Success Confirmation
- Payment confirmation page
- Optional redirect to your website
- Receipt and transaction details
Merchant Experience
-
Real-time Notifications
- Webhook events for payment status
- Email notifications (if configured)
- Dashboard updates
-
Payment Tracking
- Transaction history and status
- Payment analytics and reporting
- Integration with your systems
Webhook Events
Payment links trigger the following webhook events when payments are received:Event | Description |
---|---|
deposit.success | Payment was received via the payment link |
deposit.failed | Payment attempt failed |
Webhook Payload Example
Key Webhook Data Fields
The webhook payload includes comprehensive information about the payment:Field | Description |
---|---|
reference | Custom reference from URL query parameters (e.g., ORDER123, customer ID) |
paymentLink | Complete payment link details including name, description, and metadata |
asset | Asset information (USDC, USDT, etc.) with network details |
blockchain | Network information (Base, Ethereum, etc.) |
wallet | Master wallet details and configurations |
address | Customer address that received the payment |
amlScreening | Anti-money laundering screening results |
assetSwept | Auto-sweep status and details |
metadata | Custom data from the payment link |
The
reference
field in webhook payloads corresponds to the reference
query parameter you include in the payment URL. This allows you to track payments back to specific orders, customers, or internal references in your system.Best Practices
Security
- Use HTTPS for all payment link sharing
- Monitor webhook events for suspicious activity
- Implement rate limiting on your webhook endpoints
User Experience
- Clear descriptions of what the payment is for
- Mobile-optimized payment pages
- Multiple payment options when possible
Integration
- Store payment link IDs for tracking
- Use metadata to link payments to your systems
- Implement webhook retry logic for reliability
- Test webhooks in sandbox environment first
Use Cases & Examples
E-commerce Store
Service Invoice
Donation Campaign
Subscription Service
These examples use the correct Blockradar payment links API parameters. The
metadata
field must be sent as a JSON string in form-data, and file
uploads are supported for additional content.Testing & Development
Sandbox Environment
- Use testnet networks for development
- Test webhook delivery and handling
- Verify payment flows end-to-end
- Test edge cases and error scenarios
Webhook Testing
- Use tools like webhook.site for testing
- Verify signature validation
- Test retry mechanisms
- Monitor webhook delivery rates
Support & Resources
API Reference
Getting Help
- Email: info@blockradar.co
- API Reference: Payment Links
Payment links are a powerful way to accept stablecoin payments with minimal integration effort. Start with simple use cases and gradually add complexity as you become more familiar with the system.