CoinFlow Integration
HedgePayments is built on top of CoinFlow, the leading cryptocurrency payment infrastructure provider. This integration enables seamless fiat-to-crypto and crypto-to-fiat conversions, making it easy for your users to transact in their preferred currency.What is CoinFlow?
CoinFlow is a payment infrastructure platform that provides:- On/Off Ramps: Convert between fiat and cryptocurrency
- Multi-Chain Support: Works with Solana, Ethereum, Polygon, and more
- Compliance Built-In: KYC/AML compliance handled automatically
- Global Coverage: Supports 180+ countries and 50+ cryptocurrencies
- Instant Settlements: Fast payment processing and payouts
Architecture
Key Concepts
1. Merchant ID
Your unique identifier in the CoinFlow system. Required for all API calls and payment widget integration.2. Environment
CoinFlow supports two environments:- Sandbox: For testing and development
- Production: For live transactions
3. Blockchain Selection
Choose which blockchain to use for transactions:4. Payment Flow
- Initiate Payment: User clicks “Pay with CoinFlow”
- Widget Opens: CoinFlow modal/widget appears
- User Selects Method: Choose crypto or fiat payment
- Process Payment: CoinFlow handles the transaction
- Webhook Notification: Your server receives payment confirmation
- Update Status: Mark payment as complete in your database
Integration Benefits
For Developers
- Simple API: Clean, well-documented REST API
- React Components: Pre-built UI components
- Webhook Support: Real-time event notifications
- TypeScript Support: Full type definitions
For Users
- Multiple Payment Methods: Credit cards, bank transfers, crypto wallets
- No Wallet Required: Users can pay with fiat directly
- Secure: PCI DSS compliant payment processing
- Fast: Instant crypto transfers, 1-3 day fiat settlements
For Businesses
- Compliance: KYC/AML handled by CoinFlow
- Global Reach: Accept payments from 180+ countries
- Low Fees: Competitive transaction fees
- Instant Settlements: Get paid faster
Payment Methods Supported
Cryptocurrency
- Bitcoin (BTC)
- Ethereum (ETH)
- Solana (SOL)
- USDC (multiple chains)
- USDT (multiple chains)
- 45+ other cryptocurrencies
Fiat
- Credit/Debit Cards (Visa, Mastercard, Amex)
- Bank Transfers (ACH, SEPA, Wire)
- Apple Pay
- Google Pay
Transaction Types
1. Purchases (On-Ramp)
Convert fiat → crypto2. Withdrawals (Off-Ramp)
Convert crypto → fiatSecurity & Compliance
Data Security
- All payment data is encrypted in transit (TLS 1.3)
- PCI DSS Level 1 compliant
- SOC 2 Type II certified
- Data stored in secure, encrypted databases
Compliance
CoinFlow handles:- KYC (Know Your Customer) verification
- AML (Anti-Money Laundering) checks
- Sanctions screening
- Transaction monitoring
Privacy
- User data is never shared with merchants
- GDPR compliant
- CCPA compliant
- Right to erasure supported
Rate Limits
CoinFlow API has the following rate limits:- Production: 100 requests/minute per merchant
- Sandbox: 1000 requests/minute per merchant
- Webhooks: No limit (verified by signature)
Fee Structure
Transaction Fees
- Credit Card: 2.9% + $0.30 per transaction
- Bank Transfer: 1% (min $1)
- Crypto: Network fees only
Withdrawal Fees
- Bank Transfer: $25 per withdrawal
- Crypto: Network fees only
Fees may vary by region and payment method. Check your CoinFlow dashboard for exact rates.
Regional Availability
Supported Countries
CoinFlow is available in 180+ countries, including:- 🇺🇸 United States
- 🇨🇦 Canada
- 🇬🇧 United Kingdom
- 🇪🇺 European Union
- 🇦🇺 Australia
- 🇯🇵 Japan
- 🇰🇷 South Korea
- 🇸🇬 Singapore
Restricted Countries
Not available in:- Countries under OFAC sanctions
- Countries with crypto bans
- High-risk jurisdictions
Testing
Sandbox Mode
Use sandbox mode for development:Test Data
- Test Email: [email protected]
- Test Cards: Use standard Stripe test cards
- Test Amount: Any amount under $1000
Test Scenarios
Monitoring
CoinFlow Dashboard
Monitor your transactions in the CoinFlow dashboard:- Real-time transaction list
- Payment success rates
- Volume and revenue metrics
- Refund management
HedgePayments Analytics
Track payments through HedgePayments:- Transaction history
- User payment methods
- Conversion rates
- Revenue analytics
Best Practices
- Always validate webhooks using signature verification
- Handle errors gracefully with user-friendly messages
- Test thoroughly in sandbox before production
- Monitor transaction rates to avoid hitting limits
- Keep API keys secure using environment variables
- Log all transactions for audit and debugging

