Credit Purchase Integration: USDC Settled Directly to EVM Contract
Credit Purchase Integration: USDC Settled Directly to EVM Contract
Credit Purchase Integration: USDC Settled Directly to EVM Contract
This implementation guide outlines how Merchants on EVM chains can accept pay-ins and settle to a contract.
You MUST complete the account setup section before you start integrating!
Quick Links:
Authorization Headers:
Authorization is your API Key. You can generate this from the merchant dashboardx-coinflow-auth-user-id is a unique customer ID you use within your systems to identify the user withdrawing fundsx-coinflow-auth-blockchain should always be solana if your settlement location is the Coinflow in-app walletx-coinflow-auth-session-key is a JWT that authorizes the payer. This is valid for 24 hours and must be refreshed anytime afternpm i @coinflowlabs/reactCoinflowPurchase componentx-coinflow-auth-session-key header.
Tokenize New CardRefresh Token w/ CVVFollow the below recipe to learn how to add 3DS to your new card and saved card requests.
COINFTESTchargebackProtectionData object 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 ipv4 addressuser-agent - the payer’s User AgentGet Credits Authorization Message Get a message which the payer’s wallet should sign - this authorizes them to spend the credit balance.
Sign the Message.