Your shop is set up in this browser. Open Shop to carry on.
What you need
An iPad or a phoneOr any tablet or computer with a current browser. A receipt printer is optional.
A Dogecoin addressAny wallet gives you one. Payments go straight to it.
Two minutesPaste the address, pick your currency, add the things you sell.
Everything a small counter needs
Built for a coffee cart, a market stall or a shop: big buttons, a clear screen for the customer, and a tidy end of day.
The till
Tap what you sell
Add your menu once as quick items with calm colours, then build each sale with a tap. Or type any amount on the keypad.
Up to 24 quick items, priced in dollars, euros, pounds or DOGE
Change quantities, add a note such as the table number
Big keys that are easy to hit on a busy counter
The customer view
Turn the screen. It turns green by itself.
Your customer scans the QR code with their wallet. When the payment reaches your address, the screen shows a big green check: Paid, thank you.
Each sale asks for its own exact amount, so payments never get mixed up
The screen stays on while a sale is open
Back to the till with the Staff button: hold it, or tap it three times
Receipts
A proper receipt, printed or shared
Every paid sale has a receipt with the items, tax, tip, the DOGE paid, the rate and the transaction. Print it on a receipt printer or A4, or share it.
80 mm receipt paper or A4
Copy the text or use your device’s share sheet
Add a refund note to a sale later
Today
Know how the day went
See today’s takings in your currency and in DOGE, the number of sales, tips and tax, and a chart by hour. Look back at earlier days at any time.
Close the day with a printable summary
Export a spreadsheet (CSV) with every item
Each sale keeps the exchange rate it was made with
Tips and tax
Tips and sales tax, done for you
Turn on tips and the customer picks 10, 15 or 20 percent, another amount or no tip, right on their screen. Set your sales tax once and it is added to every sale, or already included in your prices.
The tip is part of the same single payment
Tax shows on the till, the receipt and the day’s totals
Prices in US, Canadian or Australian dollars, euros, pounds or DOGE
Works offline, installs like an app
Keeps working when the Wi-Fi does not
Install Shop on your home screen and it opens full screen from its own icon. If the connection drops, it still opens and takes sales at the last known rate.
Marks offline sales so you can check them later in your wallet
Checking for payments resumes by itself when you are back online
Updates only when you tap Reload
Your money
Straight to your wallet. No fees, no account.
Customers pay your own Dogecoin address from their own wallet. Shop never holds your money and never takes a cut, and there is nothing to sign up for.
Shop only knows your public address, never a key
Your settings and sales stay on your device
Use the free public service to see payments, or your own server
Staff PIN and backup
Hand the till to your staff
A 4-digit staff PIN locks Settings, deleting sales and refund notes, so the till can sit on the counter. Back up your shop to one file and restore it on a new device.
Wrong PINs make the till wait
The backup holds settings, items and sales, never a key
Restore merges sales, so nothing is counted twice
How it works
Set up once
Open Shop, paste your Dogecoin address, choose your currency and add what you sell.
Ring it up
Tap the items, tap Charge and turn the screen. The customer scans the QR code.
See the green check
When the payment arrives at your address, Shop says Paid, thank you, and keeps a receipt.
Install it
Shop installs from the web in three taps. It then opens full screen from its own icon, like any other app.
ShopInstall ShopOpens Shop. Android and computers offer Install there; on iPad and iPhone follow the steps.
Open Shop in Safari and tap Share at the top right.
Copy
Add to Home Screen
Add Bookmark
Choose Add to Home Screen.
Shop
Tap Add. Shop is now on your Home Screen: open it from there.
‹
Open Shop in Safari and tap Share. On newer iPhones it is under the ··· button.
Copy
Add to Home Screen
Add Bookmark
Scroll the list and choose Add to Home Screen.
Shop
Tap Add, then open Shop from its icon.
Open Shop in Chrome and tap the ⋮ menu.
New tab
Install app
Settings
Tap Install app (on some phones Add to Home screen), then Install.
Shop
Open Shop from your home screen or app drawer.
On a computer, Chrome and Edge show an install button in the address bar.
Questions
Are there any fees?
No. Shop is free, has no account and takes no cut. Your customer pays the normal Dogecoin network fee from their own wallet, and the full amount of the sale arrives at your address.
How fast does it turn green?
Shop looks for the payment straight away, then every 15 seconds for the first two minutes (every 5 seconds with your own server). By default it waits for one confirmation, about a minute. In Settings you can choose to turn green as soon as the payment is seen, or to wait for three confirmations for bigger sales.
What if the internet drops?
Installed, Shop still opens and takes the sale with the last known exchange rate. It cannot see payments while offline, so check your wallet and tap Mark as paid; those sales are marked as made offline. Checking starts again by itself when the connection is back.
Can I give a refund?
Shop never holds money, so it cannot send any back. Refund the customer from your wallet or in cash, then add a refund note to the sale: it stays in the list and leaves the day’s totals.
Is my money held by anyone?
No. The customer’s wallet pays your own address directly. DogeJS never touches the payment and has no account for you. Shop only knows your public address, and your settings and sales stay in the browser on your device.
Which wallets can my customers use?
Any Dogecoin wallet that can send to an address. The QR code is a standard Dogecoin payment link with the address and the exact amount, which most wallet apps read when they scan it. If a wallet does not fill in the amount, the customer types the exact amount shown under the code.
Which currencies can I price in?
US, Canadian and Australian dollars, euros, pounds, or DOGE. The rate comes from CoinGecko at most once a minute, or you can set it by hand. Every sale keeps the rate it was made with.
How payments are detected, the data the till keeps, the installable app, and the code behind it.
How it works
Shop is a static web app. You type or tap a sale; the till turns it into DOGE at a rate it freezes for that sale, adds a tiny tag so the amount is unique, and shows a QR code that carries a standard dogecoin: payment link. The customer pays from their own wallet. The till then looks at your address through a server and turns green when a payment of exactly that amount shows up.
Who sees what
Keys never touch the till. It only knows your public receiving address. If someone pastes a private key or recovery phrase into a field, the till clears it and says no.
Money goes straight to you. The customer's wallet sends to your address. There is no DogeJS account, no middleman and no fee on top of the normal network fee, which the customer pays.
Your data stays in this browser. Settings and sales are saved in the browser's local storage on the device. Nothing is uploaded.
Two outside calls, both optional. The exchange rate comes from CoinGecko (at most once a minute) unless you set a rate by hand or price in DOGE. Payment checks go to a server you choose: the free public service on the main network, or your own. That server learns your address and your IP address. Without a server you confirm payments yourself.
How payment detection works
Exact-amount matching
A Dogecoin payment does not say which sale it belongs to. So each sale asks for an exact amount: the price in koinu (1 DOGE = 100,000,000 koinu) plus a tag of 1 to 99 koinu, widened up to 9,999 if all of those are taken. No other sale on the same address in the last 24 hours has the same total, so one transaction can only match one sale. A sale for 159.375 DOGE might ask for 159.37500001.
The till counts a transaction as the payment when it has an output to the sale's address of exactly that amount, no other sale has claimed it, and it is not older than the sale (a confirmed block time more than 5 minutes before the sale started is ignored, to allow for clock differences). If several qualify, the one with the most confirmations wins.
When the sale is the only open sale on its address, payments in parts also work: everything that arrives after the till first looked counts towards it. The exact sum is Paid, less is Underpaid (the till says how much is missing), more is "More than asked" and waits for you to tap Mark as paid.
States
State
Means
Waiting
No payment seen yet. The sale times out after 10, 15 (default), 30 or 60 minutes.
Seen
A matching payment is on the network but has no confirmation yet.
Confirming n of m
The payment has n of the m confirmations you asked for.
Paid
The payment has enough confirmations. Settings offer none (as soon as seen), 1 (about a minute, the default) or 3 (a few minutes).
Underpaid / More than asked
Payments in parts did not add up exactly.
Expired
The time ran out with nothing seen. You can still tap Check now, Mark as paid or cancel.
Marked paid
You confirmed it yourself, for example from your wallet. Marked sales made offline are flagged.
Cancelled
Closed without payment.
A sale whose payment was seen never expires: it is checked every 30 seconds for confirmations for up to an hour.
Where the till looks, and the limits
Server
Checks
Limits
Free public service (BlockCypher, main network only, opt-in: Settings, Payment detection, Use this)
At once, every 15 s for the first 2 minutes, then every 30 s until the sale times out.
The service allows 100 requests an hour and 1,000 a day per connection, shared by every DogeJS page. The till keeps its own log and never uses more than 80 in any rolling hour or 800 in any day. After 60 in an hour the gap grows to 60 s. Check now may use 10 more an hour, at most one every 5 s. When the allowance is used up it says so and Mark as paid keeps working. Confirmations are "reported by the server": the service sends no block headers.
Your own Esplora-style server
At once, every 5 s for 2 minutes, then every 10 s.
No allowance to respect. The till checks the server is on the same network as your address before using it.
None
No checks.
You see the payment in your wallet and tap Mark as paid.
One check is one request. A sale that nobody pays within 15 minutes costs 35 requests; one paid within a minute costs about 5, and about 7 or 8 with one confirmation. So roughly ten paid sales an hour are detected at full speed on the free service; a busier till slows down and then pauses until the hour frees up. These numbers are enforced in poll-plan.ts and checked by tests that run back-to-back sales for a simulated day.
The payment link in the QR code
The QR code is a BIP 21 style link that Dogecoin wallets understand:
amount is the exact decimal text of the koinu total (up to 8 decimals, trailing zeros removed), never a floating-point number. label is your shop name, if you set one. The link is what buildPaymentLink returns; the code example below builds one.
Data storage and the backup file
Everything lives in localStorage for the till's origin. If storage is blocked (some private modes) the till keeps working from memory and says so.
Key
Holds
dogejs.shop.config
Settings: address, network, currency, shop name, server, confirmations, manual rates, theme, tax, tips, sale timeout, paper, staff PIN hash. Same key since Shop 0.1.
dogejs.shop.sales
The sales, newest 2,000 kept.
dogejs.shop.items
Quick items (up to 24).
dogejs.shop.rates
The last exchange rates, for offline use.
dogejs.shop.polls
Times of this till's requests to the free service (its allowance log).
dogejs.shop.ui
Small interface flags, such as the install hint being closed.
A sale
Amounts are decimal strings of integers: koinu for DOGE, the currency's minor unit (cents) for fiat. Fields marked optional are absent when they do not apply.
Field
Meaning
id, createdAt
Id and creation time (ms since epoch).
status
waiting | paid | marked | cancelled | expired. The text states of the screen are worked out from these and the fields below.
address, network
Where it is paid; mainnet or testnet.
currency, fiatMinor, rateE8, rateSource, rateTime
The unit the sale was made in, what the customer pays in that currency, and the frozen rate (price of one DOGE times 1e8) with its source.
baseKoinu, tag, koinu
Price in koinu, the identifying tag, and the exact amount asked (base + tag).
needConfirmations, txid, confirmations, paidAt
Confirmations required, and what was seen.
lines, subtotal, tax, taxBp, taxIncluded, tip
Optional: items sold (name, qty, unit), the amounts before tax and tip, the tax (added or included, in basis points) and the tip.
receivedKoinu, txids
Optional: what arrived so far when a payment came in parts.
refund, offline, demo, note, expiresAt
Optional: a refund note you added, marked-paid-offline flag, demo flag, free text note (up to 120 characters) and when the sale stops waiting.
The backup file
Settings, Back up shop data downloads one JSON file; Restore reads it back. It holds your settings, quick items and sales and never a key (the till has none). The staff PIN is left out, so a restored till starts unlocked. Restore refuses files over 8 MiB, files with another format, files from a newer version, and a backup without a valid address. Sales are merged by id (the backup's copy wins), invalid ones are skipped, and at most 2,000 are kept. Run it yourself in the last code example below.
The CSV from Today
Export CSV writes a UTF-8 file with a byte order mark and CRLF line ends, so Excel reads it correctly. A text cell that starts with =, +, - or @ is prefixed with an apostrophe so a spreadsheet never runs it as a formula. Columns, in order:
CSV header
Date (UTC),Status,Amount,Currency,DOGE (exact),Rate (per DOGE),Rate source,Note,Transaction id,Network,Address,Demo,Items,Subtotal,Tax,Tip,Refund,Local time
The staff PIN
An optional 4-digit PIN guards Settings, deleting sales and refund notes. It is stored in the settings as a salted PBKDF2-SHA-256 hash (100,000 iterations). After 5 wrong tries the till makes you wait 30 seconds, and once entered, Settings stay unlocked for 5 minutes. It is a convenience lock for a shared counter, not protection against someone who has the unlocked device and its developer tools.
The installable app (PWA)
Manifest
The till serves /shop/app/manifest.webmanifest:
Field
Value
id, start_url, scope
/shop/app/
name, short_name
DogeJS Shop, Shop
display, display_override, orientation
standalone, ["standalone","minimal-ui"], any
theme_color, background_color
#FFFBEF (the till sets the dark colour itself with a prefers-color-scheme meta tag and updates it live)
shortcuts
New sale (/shop/app/?go=new), Today's sales (/shop/app/?go=today)
icons
192 and 512 px, maskable 192 and 512 px, and an SVG; Apple touch icon 180 px and iOS launch images
screenshots
Two narrow and two wide, for the install prompt on Android and desktop
Service worker
Scope:/shop/app/ only. The product page, the wallet and the rest of the site are never controlled by it.
Cache: named dogejs-shop-app-<version>, where the version is a hash of the app shell. The shell is cached at install, so after one visit the till opens with no connection.
Pages are network first with a 4 second limit, then the cached copy. Files with a ?v= in the URL are served from the cache first. Fonts are kept in their own cache. Exchange-rate and payment-server answers are never cached.
Updates: a new worker waits instead of replacing the running one. The till shows "Update available" with a Reload button; Reload tells the waiting worker to take over and reloads the page. When the new worker activates it deletes older caches.
Offline: the till opens, shows an Offline badge, uses the last known rate (or one you set), takes the sale and lets you mark it paid by hand; those sales are flagged offline. Checking resumes when you are back online.
Screen wake lock is requested while a sale or the customer view is open, so the screen does not sleep on the counter.
Install: Android and desktop Chrome and Edge offer an Install app button. iOS has no install prompt: the till explains Share, then Add to Home Screen.
URLs and parameters
URL
What it does
/shop/
This product page.
/shop/app/
The till.
/shop/app/#demo or /shop/app/?demo
Starts the demo: test network, simulated checks, nothing saved as your shop. /shop/#demo and /shop/?demo redirect there.
/shop/app/?go=today
Opens Today (the home screen shortcut). ?go=new just opens the till.
The till has no other routes: its screens are in-app state, so the browser Back button leaves the till. It removes the parameters from the address bar once it has read them. If you installed Shop from /shop/ with an early version (0.2), the installed app is sent to /shop/app/ and your saved data is read as it was.
Code examples
The till is built on a small library of plain functions with no DOM. It is not on npm yet: build it from the repository (see Self-hosting) and import @dogejs/shop. All money is bigint: koinu for DOGE, cents for fiat, rates as integers scaled by 1e8. Each example below was run with Node 22 against the built package.
1. Cart, tax and tip to DOGE and a payment link
Tax is added as basis points (825 = 8.25%), the tip is a percentage of the subtotal, and everything rounds half up in integers.
JavaScript
import { totalsOf, tipFromPercent, fiatToKoinu, formatDogeText, buildPaymentLink } from '@dogejs/shop';
// Two flat whites at $4.50 and a croissant at $3.75, in cents.
const subtotal = 2n * 450n + 375n; // 1275n
const tip = tipFromPercent(subtotal, 15); // 15% of the subtotal, rounded half up
const t = totalsOf(subtotal, { bp: 825, included: false }, tip); // 8.25% tax added on top
// One DOGE costs $0.20: a rate is an integer scaled by 1e8.
const koinu = fiatToKoinu(t.total, 20_000_000n);
console.log({ subtotal, tax: t.tax, tip: t.tip, total: t.total });
console.log('koinu:', koinu, '=', formatDogeText(koinu, true), 'DOGE');
console.log(buildPaymentLink({ address: 'nUCAGGgZEPN1QyknmQe1oAku817bQAFKFt', koinu: koinu + 42n, label: 'Demo Cafe' }));
createSale freezes the rate and picks the tag; pollSales asks a source for the address's transactions and returns events; transition applies them. Here DemoSource stands in for a server. A real server is anything with getAddressTransactions and getTipHeight, such as the Esplora client in backends.
JavaScript
import { createSale, buildPaymentLink, pollSales, transition, saleState, DemoSource, DEMO_ADDRESS, totalsOf, DEFAULT_CONFIG } from '@dogejs/shop';
// 1. Make a sale: 12.75 US dollars at 0.08 USD per DOGE, then add the identifying tag
const now = Date.now();
const made = createSale({
config: { address: DEMO_ADDRESS, network: 'testnet', confirmations: 1 },
currency: 'USD', entry: '', note: 'Table 4',
totals: totalsOf(1275n, { bp: 0, included: false }),
rate: { priceE8: '8000000', source: 'Demo' },
existing: [], now,
});
if (!made.ok) throw new Error(made.reason);
let sale = made.sale;
console.log('ask:', sale.koinu, 'koinu (base', sale.baseKoinu, '+ tag', sale.tag + ')');
console.log(buildPaymentLink({ address: sale.address, koinu: BigInt(sale.koinu), label: 'Demo Cafe' }));
// 2. Pretend a customer pays exactly that amount, and look for it
const chain = new DemoSource();
console.log(saleState(sale).label); // Waiting
chain.pay(sale.address, BigInt(sale.koinu)); // confirmed in one block
const { updates } = await pollSales(chain, [sale], now + 20_000, 'testnet');
for (const u of updates) sale = transition(sale, u.event);
console.log(saleState(sale).label, sale.txid.slice(0, 12) + '...'); // Paid
nextCheckAt is the same function the till uses to decide when to ask again.
JavaScript
import { PollLedger, FREE_PLAN, nextCheckAt } from '@dogejs/shop';
// The free service allows 100 requests an hour. The till keeps its own log and never uses more than 80.
const t0 = 1_700_000_000_000;
const ledger = new PollLedger(undefined, () => t0);
for (let i = 0; i < 70; i++) ledger.record(1, t0 - i * 40_000); // 70 requests in the last hour
// A sale made 10 minutes ago, still waiting. The last check was 20 seconds ago.
const sale = { id: 'a', createdAt: t0 - 600_000, expiresAt: t0 + 300_000, status: 'waiting' };
const due = nextCheckAt({ sales: [sale], lastCheckAt: t0 - 20_000, checked: new Set(['a']), now: t0, plan: FREE_PLAN, ledger });
console.log('requests used in the last hour:', ledger.used(3_600_000, t0));
console.log('next check in', (due - t0) / 1000, 'seconds (60 requests used this hour, so the gap after the last check grows from 30 to 60 seconds)');
Output
Output (run with Node 22)
requests used in the last hour: 70
next check in 40 seconds (60 requests used this hour, so the gap after the last check grows from 30 to 60 seconds)
4. Write and read a backup file
The file is exactly what Settings, Back up shop data downloads.
git clone https://github.com/DogeJS-Dev/shop-mode.git
cd shop-mode
npm install # also installs core and backends from their git tags
npm run build # dist/shop.js (the till) and dist/index.mjs (the helper library)
npm test # 91 unit tests
The till's page, stylesheet, manifest, icons and service worker are in the website repository under site/shop/app/. Copy that folder to your host and put your freshly built dist/shop.js in it as shop.js.
Serve it at /shop/app/. The manifest and the service worker use that absolute path. To serve it elsewhere, change id, start_url and scope in the manifest and the path checks in sw.js.
After you change any file of the shell, change the VERSION string at the top of sw.js, so tills that are already installed see "Update available".
There is nothing to configure in code: the address, currency, name and server are set in the till's Settings and saved in each device's browser. Branding is the name and icons in the manifest and icons/. The CSS is app.css, built on the DogeJS ui.css tokens.
More questions
What if two customers pay at once?
Each open sale asks for a different exact amount, so each payment matches one sale. If a customer pays a different amount, the sale shows Underpaid or More than asked, and you decide.
Is a payment from the free service final?
The till marks a sale Paid from what the service reports. For goods you cannot take back, choose 3 confirmations, check your wallet, or use your own server. The service is run by a third party and the till cannot verify its confirmations.