← All guides

XRPay Product Team ·

Static vs. Dynamic QR Code Payments: When Should a Cashier Create a New Code?

Two customers owe the same amount. Learn when to generate a new QR code, how to match payment to the right sale, and what to do if checkout times out.

A customer pays at a café counter while a cashier looks on
Photo by Vitaly Gariev on Unsplash. Unsplash License.

Two customers at your counter each owe $12. One buys coffee and a sandwich. The other buys two pastries. A $12 payment comes in while they’re both standing there. Which sale should you mark paid?

The amount can’t tell you. For checkout, generate a new payment QR code for each new sale, then verify payment on the sale you’re about to complete.

What’s the difference between static and dynamic payment QR codes?

A static QR code encodes the same data each time it’s scanned. A printed code on a counter might open a reusable payment page or point to a wallet. Depending on the setup, the customer may need to enter the amount or a reference. The printout itself doesn’t tell you which sale was paid. Some systems start a separate checkout when a reusable code is scanned, so check what your payment system records before relying on the code at a register.

A dynamic payment QR code in a checkout is generated for a specific payment request. The request carries the amount and a reference your system can use to match the payment to the sale. The benefit isn’t that the image changes. It’s that your register has a specific payment to check.

What to do when two sales have the same total

Two checkout sales with the same total
SaleAmountWhat the register showsWhat the cashier does
Sale A: coffee and sandwich$12Payment confirmed for Sale AComplete Sale A and issue its receipt.
Sale B: two pastries$12No confirmed payment for Sale BKeep Sale B open and check its own payment status.

Illustrative example. Even if both customers show identical amounts on their phones, mark only the sale attached to the confirmed payment as paid.

How to take a QR payment in XRPay POS

  1. Build the sale and review the total. Confirm you’re on the right register, in the right currency and mode. Add the items and check the total before choosing how the customer will pay.
  2. Show the QR code generated for that sale. For crypto checkout, use the code or hosted payment page XRPay POS generates. Ask the customer to verify the asset, network, amount and destination in their wallet before approving.
  3. Check that XRPay confirms the payment for that sale. A wallet signature, screenshot or submitted transaction doesn’t establish that the sale is paid. Once the correct sale is confirmed, review the completed sale and issue its receipt. You can find it again under Manage → Receipts.

If the screen times out, check before you retry

A timeout can mean the checkout screen stopped waiting, not that the payment failed. Check the original transaction first. If it’s still unpaid and you need to replace it, select Cancel Sale and wait for confirmation. If you can’t confirm the cancellation, keep the original reference and check its status before trying again. Closing the tab doesn’t cancel the request.

Open the XRPay POS guide and use Test mode with a dedicated Testnet wallet and test assets. Verify the first $12 sale and find its receipt under Manage → Receipts. Then start a second $12 sale and check that it needs its own payment. Never count a test confirmation as payment for a real sale.