Card Checkout - Direct Settlement (EVM)
Setup
- Register a sandbox account or production account
- Please let the Coinflow team know what your
merchant idis on account creation
- Please let the Coinflow team know what your
- Customize your branding if using Coinflow’s SDK or Checkout link
- Create your API Key
- Complete the form to get you setup with chargeback protection
- Cards that can be used while testing
- Configure settlement location. Options include:
API Implementation
- Share payer events with Coinflow
Sharing major events that a payer makes throughout their lifecycle on your website prior to them making a purchase will allow us to collect more information about them and improve your approval rates.SignUpEventSignInEventSignInFailureEventBuyerChallengeEvent - Fetch a session key
This creates a JWT token for the customer, and authorizes the user to call these endpoints. You will pass the returned session key asx-coinflow-auth-session-keyheader.- Note:
x-coinflow-auth-user-idcan be thought of as a unique customer id that you use/define on your systems.
RequestResponse - Note:
- Get the Totals for the checkout to show the customer a quote inclusive of all fees.
RequestResponse
- Tokenize the Credit Card Number. See tab:
Tokenize New Card - Enable a New Card Checkout
This endpoint will enable a new user who has never made a purchase to complete their purchase with a credit card. Below is an example of how you’d call the card checkout endpoint:-
RequestResponse
-
- Re-tokenize a saved card number. See tab:
Refresh Token w/ CVV - Enable a Saved Card Checkout
This endpoint will enable a returning user to complete a purchase with a previously saved card. The returning user will need to enter their CVV before confirming the purchase.
Once you’ve retrieved the refreshed card token, pass it into the Saved Card Checkout endpoint. Below is an example request:
Request
Response
- Optional Implementation: Get payment by id
This endpoint allows your to get details about the payment.
Request
Response
- At this point, you’ve successfully made a purchase with a new card and with a saved card. Next, lets add 3DS for card purchases. Please reach out to the Coinflow team when you’ve reached this step so we can configure 3DS on your account.
Adding 3DS to Card Checkout
Follow the below recipe to learn how to add 3DS to your new card and saved card requests.
Adding Chargeback Protection
- Add the chargeback protection script to every page of your app.
This script allows our provider to analyze user behavior and determine if the behavior could lead to fraud.- On sandbox, partnerId =
COINFTEST
- On sandbox, partnerId =
- Pass the
chargebackProtectionDataobject to the new and saved card checkout as well as the below headers. See an example of what the request will look like when you pass chargeback protection data to the new card checkout endpoint.x-device-id- Get this after adding the script in step 1x-coinflow-client-ip- the payer’s ip addressuser-agent- the payer’s User Agent
Request - Complete the chargeback protection form so we can assign you a proper
chargebackProtectionData.productTypeandpartnerIdfor production.
Checkout Link Implementation
- Share payer events with Coinflow
Sharing major events that a payer makes throughout their lifecycle on your website prior to them making a purchase will allow us to collect more information about them and improve your approval rates.SignUpEventSignInEventSignInFailureEventBuyerChallengeEvent - Call the Get Checkout Link endpoint
This endpoint creates a checkout link which you can redirect a user to or embed in an iframe within your application.
Request
Response
👍 Want to trigger your own on success events?
You can listen to success event messages and get the payment id or pass your own function!
- Customize the UI colors and branding from your dashboard
React SDK Implementation
- Share payer events with Coinflow
Sharing major events that a payer makes throughout their lifecycle on your website prior to them making a purchase will allow us to collect more information about them and improve your approval rates.SignUpEventSignInEventSignInFailureEventBuyerChallengeEvent - Install Coinflow package
- Generate a session key for the payer.
RequestResponse
-
🚧 Session keys are valid for 30 minutes and must be refreshed afterwards.
- Implement the Coinflow Checkout Component.

