PCI Compliant Card Tokenization
This recipe uses the Card Form Components. The legacy CoinflowCardNumberInput, CoinflowCvvInput, and CoinflowCvvOnlyInput components were removed in @coinflowlabs/react 6.0.0.
Install Coinflow
npm i @coinflowlabs/react
Tokenize New Card
Collect card information from customers in a PCI-compliant way. CoinflowCardForm collects the card number, expiration, and CVV, and tokenize() returns a token along with expMonth and expYear for their payment method.
Card Checkout
Pass the token retrieved from ‘Tokenize New Card’ to the Card Checkout API endpoint
Refresh a Saved Token
Refresh a saved token using the card’s CVV in a PCI-compliant way. Pass the saved card’s token from the Get Customer endpoint to CoinflowCvvForm. The refreshed card token will be valid for 5 minutes after initial use, or used within 7 days.
Saved Card Checkout
Pass the card token retrieved from ‘Refresh Token With CVV’ to Saved Card Checkout endpoint.

