Card Form Components
Coinflow’s Card Form components provide a streamlined, PCI-compliant way to collect credit card information directly in your application. Instead of managing separate card number, CVV, and expiration inputs, these components bundle everything into a single embeddable form with one tokenize() method.
When to Use Card Form Components
Use these components when you want to:
- Collect card details for a new card checkout without building your own form layout
- Tokenize a card number with expiration for use with the Card Checkout API
- Re-collect a CVV only for a saved card before calling the Saved Card Checkout API
- Apply custom theming (fonts, colors, placeholders) to match your brand
Available Components
All three components expose a tokenize() method via a ref that returns a token you can pass to the Coinflow checkout APIs.
Installation
Tokenizing a New Card
Use CoinflowCardForm to collect the full card details (number, expiration, CVV) and tokenize them in a single call.
Refreshing a Saved Card Token (CVV Only)
When a customer pays with a saved card, you need to re-collect the CVV and refresh the token. Use CoinflowCvvForm with the saved card’s token from the Get Customer endpoint.
In Vue, the CoinflowCardForm component accepts a variant prop to switch between 'card-form', 'card-number-form', and 'cvv-form' modes.
Tokenizing Card Number Only (No CVV)
Use CoinflowCardNumberForm when you only need to collect the card number and expiration — for example, when saving a card for future use without an immediate charge.
tokenize() Response
The tokenize() method returns a CardFormTokenResponse:
CoinflowCvvForm only returns token since expiration details are already stored with the saved card.
Theming
All card form components accept a theme prop to customize the look and feel. Theme values are passed as a MerchantTheme object.
The theme values shown above are examples for illustration. Configure your branding in the Merchant Dashboard or contact the Coinflow integrations team to set these values for your account.
Component Props Reference
CoinflowCardForm / CoinflowCardNumberForm
CoinflowCvvForm
Token Expiration
Tokens expire if not used within 7 days of creation. Once used, a token is valid for 5 minutes in production. In the sandbox environment, tokens remain valid indefinitely. If a token expires, call tokenize() again to generate a new one.
Migrating from Legacy Card Inputs
If you are currently using CoinflowCardNumberInput and CoinflowCvvInput, the new Card Form components simplify your integration:
The legacy components continue to work but are deprecated. New integrations should use the Card Form components.

