One-Time Purchase Integration - Stellar Contract Settlement
One-Time Purchase Integration - Stellar Contract Settlement
One-Time Purchase Integration - Stellar Contract Settlement
This page is for advanced / cryptocurrency-native companies. If that’s not you, head back to the Quickstart for the standard flows.
This guide walks you through integrating Coinflow checkout to accept one-time credit card purchases with USDC settlement to your whitelisted Stellar Soroban contract.
Complete these steps before starting the integration.
Stellar checkout does not support Credits settlement or partial purchases where the customer contributes their own USDC alongside a credit card payment.
Before integrating checkout, you need to build a stellarTransaction — a base64-encoded XDR string representing your Soroban contract invocation.
Use the Stellar CLI to generate TypeScript bindings for your contract:
The payer should be the Coinflow checkout contract address:
Best for simple integrations. Generate a hosted checkout URL to redirect users or embed in an iframe.
Embed in an iframe
Listen for payment completion when using an iframe:
After implementing basic checkout, add 3DS for stronger authentication. Contact Coinflow to enable 3DS on your account.
Improve approval rates and reduce fraud by sharing payer events with Coinflow.
Track key user actions throughout their journey on your app.
When processing payments, include these headers for chargeback protection:
On sandbox, use the test partnerId provided by the Coinflow team when configuring the protection script.