π³ Card on File Transactions
π³ Card on File Transactions
Learn how to securely store customer payment credentials and enable one-click checkout experiences.
π³ Card on File Transactions
Learn how to securely store customer payment credentials and enable one-click checkout experiences.
A Card on File (COF) transaction uses payment credentials previously stored by Coinflow to process future payments. This enables customers to make purchases without re-entering their card details, creating a frictionless checkout experience.
π Customer Initiated Transactions (CIT)
Card on File transactions are also known as Customer Initiated Transactions (CIT) because the customer actively participates in making the payment at the point of authorization.
β Using Coinflowβs Prebuilt UI?
If youβre using Coinflowβs prebuilt UI components, customer consent and credential storage are automatically handled for you in compliance with card network requirements.
The growth of digital commerce has led to increased use of stored payment credentials. Card networks (Visa, Mastercard, etc.) have responded by introducing strict requirements and processes to protect both merchants and consumers.
To ensure compliance with the stored credential mandate, you must:
Critical Compliance Steps
Note: If using Coinflowβs Prebuilt UI, items 1-2 are automatically handled. You are always responsible for item 4.
Customers can complete purchases in seconds without re-entering payment details
Streamlined checkout experiences lead to improved conversion rates
Makes repeat purchases easier, encouraging customer loyalty
Coinflow handles PCI-compliant storage of sensitive payment data
Customer completes their first transaction and opts in to save their payment credentials for future purchases.
Payment details are tokenized and stored securely in Coinflowβs PCI-compliant vault.
Understanding the differences between payment types helps ensure compliance and proper implementation:
π‘ Need Recurring Billing?
If you need automated recurring payments on a schedule, check out our Subscriptions Overview documentation.
Implementing Card on File checkout is a two-step process:
For the customerβs first purchase, use either the Card Checkout or Token Checkout endpoint to process the payment and store their credentials.
Option A: Card Checkout
Use this endpoint when you have raw card details from the customer:
View Card Checkout API Reference
Option B: Token Checkout
Use this endpoint when you have a tokenized card (e.g., from a previous tokenization):
View Token Checkout API Reference
Save the Payment ID or Card Token
After a successful initial purchase, you can reference the card for future Card on File transactions using either:
paymentId from the response (to use a specific transaction as the velocity limit reference)token from the response (system will automatically use the most recent CVV-verified transaction)Save whichever identifier fits your implementation best.
For subsequent purchases, use the Card on File Checkout endpoint with either the original payment ID or the card token.
View Card on File Checkout API Reference
Request Parameters:
You must provide one of the following to identify the saved card:
originalPaymentId - The payment ID from a specific CVV-verified transactiontoken - The card token (system automatically finds the most recent CVV-verified transaction for velocity validation)Using Card Token vs. Payment ID
When you pass a token instead of an originalPaymentId, Coinflow automatically locates the most recent CVV-verified transaction for that card token and uses it to validate velocity limits (transaction count, amount multiplier, and expiration window).
This is useful when you want to use a saved card without tracking individual payment IDsβjust pass the card token and the system handles the rest.
Example Request with Original Payment ID:
Example Request with Card Token:
Required for Chargeback Protection
If you have chargeback protection enabled, you must collect and send the nSure device ID with your Card on File checkout requests.
Add nSure SDK to Your Application:
<CoinflowPurchaseProtection> component to every page:Include chargebackProtectionData:
Required for 3DS-Enabled Transactions
If 3D Secure (3DS) authentication is required, you must handle the 3DS challenge flow before the payment can be completed.
When a Card on File transaction requires 3DS authentication, the API will return a response indicating that 3DS verification is needed.
3DS Challenge Flow:
Example React Implementation:
Hereβs a complete example showing all components together:
Card on File functionality includes several configurable settings that control how and when stored credentials can be used. These settings help you manage security, fraud prevention, and compliance.
Configuration Required
Card on File must be enabled on your merchant account before you can accept Card on File payments. Contact your Coinflow integration representative to configure these settings.
Your Coinflow integration team will configure the following Card on File settings for your merchant account:
Velocity Controls:
maxCount - Maximum number of Card on File payments allowed within a time periodperiod - Time window in seconds for the maxCount limit (e.g., 86400 for 24 hours)Payment Limits:
maxMultiple - Maximum multiplier for Card on File transaction amounts compared to the original payment (e.g., 3x means a Card on File payment can be up to 3Γ the original payment amount)Time-Based Restrictions:
expiration - Time window in seconds during which an original payment can be used as a Card on File reference (e.g., 86400 for 24 hours)This configuration means:
Understanding and properly handling Card on File errors is critical for a smooth customer experience.
Error Message:
Cause: Card on File functionality is not enabled on your merchant account.
Resolution:
Error Message:
Cause: Youβre attempting to use a mobile wallet payment (Apple Pay, Google Pay) as the original payment for Card on File.
Resolution:
Error Message:
Cause: Youβre attempting to use a Card on File payment as the original payment reference for another Card on File transaction.
Resolution:
originalPaymentIdError Message:
Cause: The customer has exceeded the maximum number of Card on File payments allowed within the configured time period.
What This Means:
maxCount and period settingsResolution Options:
Option A: Show Coinflow Prebuilt UI
Option B: Reassociate Card via API
/api/checkout/token/{merchantId})Recommended Approach
Show a friendly message: βFor security, please verify your card detailsβ and present the Coinflow checkout UI for re-verification.
Error Message:
Cause: Too much time has passed since the original payment was created. The payment reference has expired based on your merchantβs expiration setting.
What This Means:
expiration setting (in seconds)Resolution Options:
Option A: Show Coinflow Prebuilt UI
Option B: Reassociate Card via API
/api/checkout/card/{merchantId})Proactive Approach
Track when original payments are approaching expiration and prompt customers to re-verify their cards before expiration occurs.
Error Message:
Cause: The Card on File payment amount exceeds the configured multiplier of the original payment amount.
Example:
What This Means:
maxMultiple settingResolution Options:
Option A: Show Coinflow Prebuilt UI for Full Amount
Option B: Split the Payment
Option C: Reassociate Card at Higher Amount
/api/checkout/card/{merchantId})Customer Communication
When a payment exceeds limits, explain clearly: βThis purchase amount requires additional verification. Please confirm your payment details.β
All 410 Gone errors indicate that the original payment reference can no longer be used. Hereβs what to do:
Best Practice
Always catch 410 errors and provide a seamless re-verification flow. Customers should never see raw error messages - instead, guide them to verify their payment method with clear, friendly messaging.
Make it obvious to customers that their payment method will be saved and how it will be used. Use clear checkbox labels like βSave this card for faster checkoutβ rather than pre-checked boxes.
Give customers a way to view, update, and delete their stored payment methods through their account settings.
Always show customers a clear confirmation screen before processing a Card on File payment, including the amount and saved payment method being used.
Yes, customers can store multiple payment methods. Your implementation should allow them to select which saved card to use for each purchase.
Tokenization is the security mechanism used to safely store card details. Card on File refers to the business flow of using those stored credentials for future purchases with customer consent.
No, Card on File transactions are processed with the same fee structure as regular card transactions. There are no additional charges for storing payment credentials.