Back to articles
Accept Crypto Payments with On-Chain Verification — No Stripe, No Gumroad

Accept Crypto Payments with On-Chain Verification — No Stripe, No Gumroad

via Dev.to WebdevTateLyman

The Problem Payment processors take 2.9% + $0.30 per transaction. For a $10 digital product, that's a 6% cut. Plus monthly fees, chargeback risk, and KYC requirements. The Solution Accept SOL (Solana) directly and verify the payment on-chain. Zero fees. Zero chargebacks. Zero middlemen. How It Works 1. Show Payment Page Display your wallet address and the price in SOL. 2. User Sends SOL They send from any Solana wallet (Phantom, Solflare, etc.) 3. User Enters Transaction Signature After sending, they paste the transaction signature. 4. Verify On-Chain const { Connection } = require ( ' @solana/web3.js ' ); async function verifyPayment ( signature , expectedWallet , expectedAmount ) { const conn = new Connection ( ' https://api.mainnet-beta.solana.com ' ); const tx = await conn . getTransaction ( signature , { commitment : ' confirmed ' , maxSupportedTransactionVersion : 0 , }); if ( ! tx || ! tx . meta ) return false ; // Check recipient received expected amount const accounts = tx . t

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles