HVZ6hZAfRhGgRRvQ5oKkXJJEd1Wji3bAVkXQDk1ZRuc8 do not send amount in decimal to the swap api, send the whole value
Accept any Solana token, receive USDC — Seamless crypto payments for merchants and customers.
SOLPay is a flexible payment gateway built on Solana that solves the token fragmentation problem. Customers can pay with any token in their wallet while merchants receive stable USDC, making crypto payments practical for everyday commerce.
- Universal Token Acceptance: Accept SOL, USDC, BONK, SAMO, and any other SPL token
- Guaranteed USDC Settlement: Merchants always receive USDC regardless of payment method
- Real-time Price Conversion: Powered by Jupiter Aggregator API
- Wallet Detection: Automatically displays tokens available in customer wallets
- Transaction Tracking: Monitor payment status with explorer integration
- DevNet Support: Fully functional testing environment
- Enter payment amount in USD
- Select your preferred payment token from your wallet
- Connect your Solana wallet (Phantom, Solflare, etc.)
- Approve the transaction
- Share your SOLPay payment URL with customers
- Receive USDC directly to your wallet address
- No need to handle multiple tokens or conversions
SOLPay consists of:
- Next.js Frontend: Clean, responsive UI with Solana wallet integration
- Solana Program: Manages escrow and payment verification
- Token Conversion Layer: Interfaces with Jupiter for optimal swaps
- Transaction Monitoring: Real-time transaction status updates
- Clone the repository
git clone https://github.com/your-username/solpay.git
cd solpay
npm install- Install dependencies
npm install- Set up environment variables in .env.local
NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com- Run the development server
npm run dev