Credit Purchase Integration: USDC Settled Directly to Coinflow Wallet
Credit Purchase Integration: USDC Settled Directly to Coinflow Wallet
Credit Purchase Integration: USDC Settled Directly to Coinflow Wallet
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 afterShare 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