A production-ready checkout SDK for Solana merchants, enabling payments in any token with instant USDC settlement via Jupiter Swap V2.

E-commerce merchants wanting to accept digital currency face a major barrier: customers hold various arbitrary tokens (SOL, BONK, JUP, RAY), while store owners only want stable digital dollars (USDC) to avoid crypto volatility. Forcing customers to manually swap tokens beforehand ruins checkout conversion rates.
I engineered FlexPay to solve multi-token payment routing by embedding real-time DEX aggregation directly into the checkout SDK:
When a customer selects an arbitrary token to pay with, FlexPay queries Jupiter Swap V2 API to identify the optimal swap path, calculates slippage protection, and builds an atomic transaction combining the token swap and USDC transfer into a single wallet approval prompt.
useFlexPayTerminal Workspace// FlexPay React Hook for Instant E-Commerce Checkout Integration export function useFlexPay({ merchantAddress, targetAmountUSDC }: FlexPayConfig) { const [loading, setLoading] = useState(false); const executeCheckout = async (inputToken: string) => { setLoading(true); const swapRoute = await fetchJupiterRoute(inputToken, 'USDC', targetAmountUSDC); const transaction = await buildAtomicPaymentTx(swapRoute, merchantAddress); const txHash = await sendTransaction(transaction); return txHash; }; return { executeCheckout, loading }; }
Built an analytics dashboard for merchants to track transaction volume, inspect conversion rates, and verify settlement status in real time.
Reduced checkout payment friction by allowing customers to pay in any Solana token with instant USDC merchant settlement.
Achieved sub-second transaction routing using Jupiter Swap V2 atomic execution.
Packaged the integration into a reusable client-side React SDK for developer adoption.