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 page is for advanced / cryptocurrency-native companies. If that’s not you, head back to the Quickstart for the standard flows.
This implementation guide outlines how Merchants on EVM chains can accept pay-ins and settle to a contract.
This integration assumes you’ve completed the Account Setup prerequisites — sandbox merchant account, API key, team access, and any product-specific configuration (settlement location, chargeback protection, or wallet funding).
Quick Links:
Authorization Headers:
Authorization — Your API key from the merchant dashboard.x-coinflow-auth-user-id — A unique customer ID from your own systems identifying the payer or payee.x-coinflow-auth-session-key — A JWT that authorizes the payer. Valid for 24 hours; refresh after expiry.npm 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.
partnerId provided by the Coinflow team.chargebackProtectionData 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.