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%20Latte

This 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.js

Use 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:

Next Steps

Explore the documentation based on what you're building:

Community & Support

Source

Built and maintained by the Solana Foundation.

Licensed under Apache License, Version 2.0.