Credit Purchases — Settle to Coinflow Wallet
Credit Purchases — Settle to Coinflow Wallet
Sell credits through Coinflow checkout and let Coinflow hold your settled balance — the recommended path for most merchants.
Credit Purchases — Settle to Coinflow Wallet
Sell credits through Coinflow checkout and let Coinflow hold your settled balance — the recommended path for most merchants.
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.📘 At this point, the purchase for credits is complete, and the payer has credits in their wallet.
After the user has credits, they can use their credits for use at anytime.
Merchants who want full control over redemption can create and sign a redeem transaction themselves.
Sign the transaction with the merchant wallet and submit it via Coinflow’s endpoint to settle the redemption.
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.
Install the Coinflow React package
Render the CoinflowPurchase component to let a customer buy credits with their card or bank account. With the Coinflow Wallet path, no additional wallet or chain configuration is needed.
Add chargeback protection on every page of your app — required.
With the Coinflow Wallet path, Coinflow manages the credit balance for you. When a customer spends credits, your backend deducts from their balance and you call Coinflow when you need to draw against the settled funds. No client-side wallet signing is needed.
Merchants who want full control over redemption can pass a pre-built, base58-encoded transaction to CoinflowPurchase via the transaction prop, along with the chain wallet adapter props (wallet, connection, blockchain). Only pass the transaction when the customer is redeeming credits — never on initial purchase. See Custom Redemption below in the API section for the redemption-transaction creation flow.
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.
Generate an API Key from Merchant Dashboard > API Keys > Create.
Get a Session Key
This creates a JWT for the payer and must be refreshed every 24 hours.
Note: Session keys are valid for 24 hours and must be refreshed upon expiration.
Get the Totals for the checkout
This will return the total price inclusive of all fees for the purchase.
Tokenize New CardRefresh Token w/ CVVMerchants who want full control over redemption can create and sign a redeem transaction themselves.
Sign the transaction with the merchant wallet and submit it via Coinflow’s endpoint to settle the redemption.