Credit Purchase Integration: USDC Settled Directly to BYO Wallet (Solana)
Credit Purchase Integration: USDC Settled Directly to BYO Wallet (Solana)
Credit Purchase Integration: USDC Settled Directly to BYO Wallet (Solana)
This page is for advanced / cryptocurrency-native companies. If that’s not you, head back to the Quickstart for the standard flows.
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.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.
Get a checkout link
This endpoint will generate a link which you can embed in an iframe or redirect users directly to.
Submit a purchase through the provided link and go to the merchant dashboard to see the purchase record.
📘 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.
Have the user wallet sign and send the transaction. Below is an example of how you can sign it. You may use Coinflow’s endpoint to then send the transaction to the solana blockchain.
CoinflowPurchase modal so a user can purchase credits with their payment method.CoinflowPurchase like below:
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/ CVVHave the user wallet sign and send the transaction. Below is an example of how you can sign it. You may use Coinflow’s endpoint to then send the transaction to the solana blockchain.
Add Chargeback protection on EVERY PAGE of your app