Introduction
A standard protocol for decentralized payments on Solana
Solana Pay is a standard protocol and set of reference implementations that enable developers to incorporate decentralized payments into their apps and services. The Solana blockchain confirms transactions in less than a second and costs on average $0.0005, providing users a seamless experience with no intermediaries.
Why Solana Pay?
- Standard Protocol: Unified approach to payments across all Solana wallets and apps
- Ultra Fast: Transactions confirm in less than a second
- Ultra Cheap: Average transaction cost of $0.0005
- No Intermediaries: Direct peer-to-peer payments without third parties
- Universal Wallet Support: Compatible with Phantom, Solflare, Backpack, and more
Quick Start
The simplest way to get started is with a transfer request URL:
solana:recipient?amount=0.01&label=Coffee%20Shop&message=Grande%20LatteThis URL can be:
- Encoded as a QR code for mobile wallet scanning
- Used as a payment link in web applications
- Embedded in mobile apps as deep links
→ Transfer Request Quick Start - Create simple payment URLs
→ Transaction Request Quick Start - Build interactive payment flows
→ Overview - Detailed overview and specifications
Installation
Install the Solana Pay JavaScript SDK:
# Using pnpm (recommended)
pnpm add @solana/pay @solana/web3.js bignumber.js
# Using npm
npm install @solana/pay @solana/web3.js bignumber.js
# Using yarn
yarn add @solana/pay @solana/web3.js bignumber.jsUse Cases
Solana Pay enables a wide range of payment scenarios:
- Retail Payments: In-person payments using QR codes
- E-commerce: Web checkout flows with wallet integration
- Mobile Apps: Native payment experiences with deep linking
- NFT Minting: Dynamic transaction creation for complex interactions
- Subscriptions: Recurring payments and loyalty programs
- DeFi Integration: Composable transactions with swaps and lending
Supporting Wallets
Solana Pay works with all major Solana wallets:
- Phantom - Most popular Solana wallet
- Solflare - Multi-platform Solana wallet
- Backpack - Web3 wallet and app store
- Glow - Mobile-first Solana wallet
- Ultimate - DeFi-focused wallet
- Decaf Wallet - Global Payments wallet
- Espresso Cash - Global Payments wallet
- Tiplink - The world's simplest wallet
- Bitget Wallet - Multi-chain wallet
Next Steps
Explore the documentation based on what you're building:
- Quick Start Guides - Get up and running quickly
- Transfer Requests - Simple payment URLs
- Transaction Requests - Interactive payment flows
- QR Code Integration - Generate scannable payment codes
Community & Support
- Questions? Ask on Solana Stack Exchange (use the
solana-paytag) - Issues? Report on GitHub Issues
Source
Built and maintained by the Solana Foundation.
Licensed under Apache License, Version 2.0.