One-Time Purchase Integration - Stellar Contract Settlement
This guide walks you through integrating Coinflow checkout to accept one-time credit card purchases with USDC settlement to your whitelisted Stellar Soroban contract.
Prerequisites
Complete these steps before starting the integration.
Quick Reference
Authorization Headers
Stellar checkout does not support Credits settlement or partial purchases where the customer contributes their own USDC alongside a credit card payment.
Build Your Stellar Transaction
Before integrating checkout, you need to build a stellarTransaction — a base64-encoded XDR string representing your Soroban contract invocation.
Generate TypeScript Bindings
Use the Stellar CLI to generate TypeScript bindings for your contract:
Build and Encode the Transaction
The payer should be the Coinflow checkout contract address:
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: Use the checkout link
Embed in an iframe
Step 3: Handle success events
Listen for payment completion when using an iframe:
3DS Authentication
After implementing basic checkout, add 3DS for stronger authentication. Contact Coinflow to enable 3DS on your account.
Chargeback Protection
Improve approval rates and reduce fraud by sharing payer events with Coinflow.
Send user events
Track key user actions throughout their journey on your app.
Required headers for checkout
When processing payments, include these headers for chargeback protection:
On sandbox, use partnerId = COINFTEST when configuring the protection script.

