orymsolana.xyz

How to Use Solana Pay for a Physical Store Checkout

Solana Pay lets a customer pay a physical store with a Solana wallet by scanning a QR code, and the transaction lands in seconds for around a fraction of a cent. The flow is simpler than it looks: the point-of-sale (POS) system generates a payment request, the customer approves it in their wallet, and the store sees the confirmed transaction on-chain. This page walks through the setup and the checkout process, with the quirks you will actually hit.

What solana pay actually is

Solana Pay is a payment protocol built on Solana's transaction format, not a separate network or token. It uses a standard URL scheme - solana: - that encodes a payment request. When a customer scans a QR code containing that URL, their wallet decodes the request and presents a transfer or a Solana Program Library (SPL) token transfer for approval. The store's backend listens for the transaction's signature on-chain to confirm payment.

The critical difference from card payments: there is no intermediary settling the transfer. The customer's wallet signs a transaction that moves funds directly to the store's wallet address. The store does not need to hold funds in escrow or wait for a bank clearing window. The confirmation is the settlement.

What you need before checkout

You need three things:

  1. A Solana wallet for the store, to receive payments. Any wallet that supports SPL tokens works, but the store should keep the receiving address separate from any hot wallet used for daily operations. A hardware wallet for cold storage is overkill for a till, but do not use an exchange deposit address - you do not control the private key, so you cannot prove the payment arrived.

  2. A POS application that can generate Solana Pay payment requests. This can be a cloud-based till like Square (which has a Solana Pay plugin) or a custom app you build. The application needs to create a unique payment reference per checkout, so it can match an incoming transaction to the right customer.

  3. A way to display a QR code. A tablet or phone screen at the till works. The QR code encodes the payment URL - it is not a static address. Each checkout should generate a fresh URL with an amount and a reference, not a reusable address, because a static address cannot tell you which customer paid or whether the amount is correct.

The checkout flow, step by step

Here is the sequence from the customer's perspective, and what the store's system does at each step.

  1. The cashier totals the order. The POS system calculates the amount in the store's chosen settlement currency, typically USDC (a stablecoin) to avoid price volatility. If the store accepts SOL, the amount is set in SOL at the current market rate - but that introduces price risk between the moment the customer approves and the moment the transaction confirms. Most physical stores use USDC for this reason.

  2. The POS generates a payment URL. The URL looks something like this: solana:address?amount=1.50&reference=ABC123&label=MyStore&message=Order%2345. The reference field is a random or sequential identifier the store generates. The label and message are optional but show up in the customer's wallet, reducing confusion.

  3. The customer scans the QR code. Their wallet app opens and decodes the URL. The wallet displays the amount, the recipient address, and any message. The customer confirms the payment. At this moment, the wallet constructs a transaction, signs it, and broadcasts it to the Solana network.

  4. The store confirms the transaction. The POS backend listens for the payment reference. It can do this in two ways: poll an RPC endpoint for the transaction status, or subscribe to a WebSocket stream for the store's receiving address. The reference is not stored on-chain as plain text - it is hashed into a memory address within the transaction, which is how the store knows which checkout it belongs to. The store then marks the order as paid.

  5. The transaction confirms. On Solana, this typically takes a few seconds. The store should wait for a finalized confirmation, not just a processed one, before releasing goods. A processed transaction means the leader accepted it, but a fork could theoretically orphan it. Waiting for finalization adds a couple of seconds but removes the risk of a double-spend attempt.

Quirks you will actually hit

USDC transfers require a token account. The store's wallet needs a token account for USDC before it can receive any. Creating that account requires a small initial SOL balance for rent, plus a one-time signature. Most POS systems handle this automatically by creating the account on first use, but if the store has never received USDC, the first payment may fail with an "insufficient funds" error. Set up the token account in advance.

The customer's wallet must support Solana Pay. Most major Solana wallets - Phantom, Solflare, Backpack - support the solana: URL scheme. But not all do. Test with the exact wallet your customers use. Some wallets require the user to manually switch the network from Mainnet to Devnet if you are testing. For production, obviously use Mainnet.

The reference field is not a payment ID. It is a way to avoid correlation. The store matches the reference hash in the transaction's instruction data to its own records. Do not put a raw order number in the reference. Generate a random string per checkout. This also prevents a malicious actor from scanning the blockchain and associating a specific payment amount with a specific order.

Refunds are not the reverse of a payment. You cannot "un-sign" a transaction. To refund a customer, you send a new transaction from the store's wallet back to the customer's address. This incurs a network fee and requires the customer's receiving address to be correct. Do not attempt to refund to a different address than the one that paid - that is a common scam vector.

The amount must be exact. The customer's wallet will not round up or down. If the total is $1.50 in USDC, the wallet sends exactly 1,500,000 micro-USDC (six decimal places). If the store's POS calculates the amount wrong, the customer pays the wrong amount. The store should always compare the received amount against the expected amount, not just check that any payment arrived.

What can go wrong

A note on settlement

The store receives USDC or SOL in its own wallet. To convert to fiat, the store will need to use a crypto-to-fiat service or an exchange that supports withdrawals to a bank account. This is a separate step from the checkout flow, and it carries its own fees and wait times. Some POS systems handle this conversion automatically by routing the payment to a merchant processor, but that reintroduces a middleman - which defeats part of the point of accepting crypto directly.

Solana Pay works for physical stores because confirmation is fast and fees are negligible. The mechanics are straightforward, but the details - token accounts, reference hashes, finality - determine whether a checkout feels seamless or falls apart. Test the full flow with a small amount on Mainnet before going live.

Not financial advice. orymsolana.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to solana