One-Time Purchase Integration - Solana Contract Settlement
This guide walks you through integrating Coinflow checkout to accept one-time credit card purchases with USDC settlement to your whitelisted Solana program.
Prerequisites
Complete these steps before starting the integration.
Quick Reference
Authorization Headers
Choose Your Implementation
Checkout Link
React SDK
API Only
Best for simple integrations. Generate a hosted checkout URL to redirect users or embed in an iframe.
Step 1: Generate the checkout link
Step 2: Create a redeem transaction
After the payer completes checkout, create a redeem transaction to settle USDC to your contract. Create a base58 encoded transaction for your whitelisted program.
Step 3: Sign and send the transaction
Have the user’s wallet sign and send the transaction.
Chargeback Protection
Add the protection script
Add the chargeback protection script to every page of your app.
Send user events
Track key user actions throughout their journey.
On sandbox, use partnerId = COINFTEST when configuring the protection script.

