Basic Card Checkout Guide
Basic Card Checkout Guide
Integrating Coinflow checkout is straightforward:
1. Choose Your Checkout Method
Pick the integration style that fits your needs:
- Checkout Link - Redirect customers to a hosted payment page (5 min setup)
- React SDK - Drop in pre-built React components (15 min setup)
- API Integration - Full control with your custom UI (30 min setup)
2. Set Up Webhooks
Configure webhooks to receive payment notifications and complete your business logic:
- Credit customer accounts with sweeps coins/cash
- Unlock purchased content or features
- Update your database with transaction details
- Send confirmation emails
3. Add Fraud Protection Features (Optional)
Enhance your checkout with optional features:
- AI-Powered Chargeback Protection - Reduce fraud and disputes
- 3DS Authentication - Add extra security for card payments
Getting Started
Complete these prerequisites before integrating any checkout method.
⚠️ Account Setup Required
Complete these steps before integrating:
- Register a sandbox merchant account or login
- Create a sandbox API key
- Add team members to your sandbox account
- Configure settlement settings - choose between:
- Add chargeback protection script to every page
Developer Resources
Quick Reference
API Authentication
All API requests require these headers:
Integration Methods
Choose the method that best fits your technical requirements and timeline.
Checkout Link Implementation
⏱️ Setup time: ~5 minutes | Best for: Quick integration, minimal code
The fastest way to start accepting payments. Generate a secure checkout URL and redirect customers to a hosted payment page.
When to Use
- You want to integrate payments quickly
- You prefer a hosted solution
- You don’t need deep UI customization
Implementation Steps
Step 1: Share Payer Events
Share key customer lifecycle events to improve approval rates.
Step 2: Generate Checkout Link
Create a hosted checkout page for your customers.
Response:
Step 3: Redirect or Embed
Option A: Redirect - Send users to the checkout link
Option B: Embed in iframe - Display checkout inline
Step 4: Customize & Secure
- Customize branding to match your brand
- Whitelist your domain to prevent unauthorized use
React SDK Implementation
⏱️ Setup time: ~15 minutes | Best for: React applications
Pre-built React components that handle the complete checkout flow.
When to Use
- You’re building with React
- You want pre-built UI components
- You need more customization than the checkout link
Implementation Steps
Step 1: Install Package
Step 2: Share Payer Events
Step 3: Generate Session Key
Response:
⚠️ Important: Session keys expire after 30 minutes and must be refreshed.
Step 4: Tokenize Checkout Parameters
Encrypt checkout parameters to prevent tampering.
Step 5: Implement Component
Step 6: Customize & Secure
API Implementation
⏱️ Setup time: ~4 hours | Best for: Full control, custom UI
Build a completely custom checkout experience with full control over the UI and flow.
When to Use
- You need complete control over the checkout UI
- You want to build a native mobile app experience
- You have specific business logic requirements
Implementation Steps
Step 1: Share Payer Events
Share key customer lifecycle events to improve approval rates (applicable if using chargeback protection only).
Step 2: Get Session Key
Generate a JWT token for the customer (valid 24 hours).
Response:
Step 3: Get Payment Totals
Show customers a quote including all fees.
Response:
Step 4: Tokenize Card
See PCI-compliant card tokenization guide →
Step 5: Tokenize Checkout Parameters
Encrypt checkout parameters to prevent tampering.
Step 6: Process New Card Checkout
Process a payment for first-time customers.
Response:
Step 7: Process Saved Card Checkout
For returning customers using previously saved cards.
- Re-tokenize the saved card with CVV
- Call the token checkout endpoint:
Step 8 (Optional): Retrieve Payment Details
Adding 3DS Authentication (Optional)
Once you’ve completed the basic integration, contact Coinflow to enable 3DS on your account.
Complete 3DS challenge guide →
AI-Powered Chargeback Protection (Optional)
Required Setup
-
Share payer events (see Step 1 above)
-
Add the chargeback protection script to every page:
- Sandbox partner ID:
COINFTEST - Implementation guide →
- Sandbox partner ID:
-
Include additional headers in checkout requests:
x-device-id- Obtained after adding the scriptx-coinflow-client-ip- Payer’s IP addressuser-agent- Payer’s user agent
-
Pass
chargebackProtectionDatain your checkout requests (see Step 5 example)
Next Steps
Now that you’ve chosen your integration method:
-
Set up webhooks (Required)
- Receive real-time payment notifications
- Credit customer accounts with sweeps coins/cash
- Unlock purchased content or features
- Update your database with transaction details
-
Test Your Integration
- Use sandbox test cards
- Verify webhook delivery
- Test your business logic
-
Go Live
- Review transactions in your merchant dashboard
- Contact Coinflow to enable production mode
- Update to production API endpoints
Support
Need help? Reach out to the Coinflow team or consult the full documentation at docs.coinflow.cash.

