How Checkout Works
When you create a payment via the API, Card2Crypto generates a unique checkout URL where your customer completes the payment.Checkout Flow
1
Customer Clicks Pay
Customer initiates payment on your website
2
Your Server Creates Payment
Your backend calls the Card2Crypto API to create a payment
3
Redirect to Checkout URL
Redirect customer to the checkout_url from API response
4
Customer Enters Card
Customer enters credit card information on checkout page
5
Payment Processed
Card2Crypto processes the payment securely
6
Return to Your Site
Customer redirected back to your return_url with payment ID
White-Labeled Experience
The checkout page is fully branded with your shop name and logo. Customers see your branding throughout the payment process, not Card2Crypto’s.What Customers See
- Your shop name in the page title
- Your shop name in the payment description
- Clean, professional payment form
- Secure secure payment processing
- Mobile-responsive design
What Customers Don’t See
- Card2Crypto branding (minimal footer only)
- Cryptocurrency mentions
- Your API keys or backend details
Creating Checkout Sessions
Basic Example
With Customer Information
Pre-fill customer email and name for a better experience:With Metadata
Pass order information to track the payment:Return URL Behavior
After payment (success or failure), the customer is redirected to your return_url with the payment ID:Handle Return URL
Return URL Best Practices
- Always verify payment status - Don’t trust the return URL alone
- Use HTTPS - Ensure your return URL uses HTTPS
- Include order context - Add query params to identify the order:
- Handle missing payment_id - Validate the parameter exists
Checkout Page Security
PCI Compliance
Card2Crypto handles all PCI compliance requirements. Your server never touches credit card data.- Card information goes directly from customer to our secure processor
- You don’t need PCI certification
- No card data stored on your servers
Payment Security
- Secure payment processing
- 3D Secure authentication for fraud prevention
- SSL/TLS encryption for all data
- HMAC signatures for webhook verification
Customer Data
Customer email and name (if provided) are:- Stored encrypted in Card2Crypto’s database
- Only accessible via API with your API key
- Never shared with third parties
- Included in webhooks to your server
Mobile Experience
The checkout page is fully responsive and optimized for mobile devices:- Touch-friendly input fields
- Mobile-optimized card input
- Works on all screen sizes
- Fast loading times
Payment Methods
Currently supported:- All major credit cards (Visa, Mastercard, Amex, Discover)
- Debit cards
- Apple Pay / Google Pay (coming soon)
- Bank transfers
- PayPal
- Cryptocurrency direct payments
Checkout Expiration
Checkout URLs don’t expire. Customers can complete payment at any time after the URL is generated. However, best practice is to:- Generate fresh URLs for each payment attempt
- Don’t reuse checkout URLs
- Cancel old pending payments if customer creates new ones
Error Handling
Payment Declined
If a payment is declined:- Customer sees error message on checkout page
- Customer can try a different card
- Status remains
pending
(notfailed
) - No webhook is sent for declined attempts
failed
.
Network Errors
If customer loses connection during payment:- Customer can refresh and try again
- Payment status can be checked via API
Timeout
Checkout sessions don’t timeout. Customer can return to the URL later to complete payment.Customization
Current Customization Options
- Shop name (shown on checkout page)
- Return URL (where customer goes after payment)
Not Customizable (Yet)
- Logo upload
- Color scheme
- Custom fields
- Payment page layout
Testing Checkout
Development Testing
- Create a test payment with a small amount ($0.50 minimum)
- Use your production API keys
- Use real credit card (will be charged)
- Test the complete flow:
- Create payment
- Redirect to checkout
- Enter real card details
- Complete payment
- Verify return URL redirect
- Check webhook delivery
Test Cards
Card2Crypto uses our live payment processor. Use real cards for testing. For development, use small amounts:Monitoring Checkouts
Track checkout performance in your dashboard:- View all pending payments
- See which payments are completed
- Monitor failed payments
- Check customer emails