• v1.2.1 c2a31e2180

    btcbob released this 2026-11-07 04:44:53 +00:00 | 0 commits to master since this release

    Phone alerts made simple. The installer now offers a SALE push to your phone for every paid order, through the free ntfy app. The SMS option from 1.2.0 is removed.

    Setting it up (about two minutes)

    1. Install ntfy on your phone (Play Store, F-Droid or App Store).
    2. In the app tap +, enter a long random topic name, tap Subscribe. The installer suggests one.
    3. Paste the topic URL (e.g. https://ntfy.sh/my-shop-7f3k9q2xv8) when install.php asks. It can send a test alert right away.

    Already installed? Set notify_ntfy_url in config.php instead. Anyone who knows the topic name can read it, so keep it random; alerts carry no buyer details. Running your own ntfy server with a protected topic? Add its token as notify_ntfy_token.

    Changes

    • install.php asks the optional ntfy question and writes notify_ntfy_url.
    • SMS Gateway for Android support removed: it needed a sideloaded app, restricted Android permissions and a phone kept awake, too much for most owners. If you set notify_sms_* keys under 1.2.0 they are now ignored; switch to ntfy.

    Upgrade

    Keep config.php and data/, replace everything else. No database changes.

    R=https://git.subgenius.finance/SubGeniusFinance/xmr-cart/releases/download/v1.2.1
    curl -LO $R/xmr-cart-1.2.1.tar.gz -LO $R/xmr-cart-1.2.1.tar.gz.sha256
    sha256sum -c xmr-cart-1.2.1.tar.gz.sha256
    tar xzf xmr-cart-1.2.1.tar.gz
    sudo rsync -a --exclude=config.php --exclude=data/ xmr-cart-1.2.1/ /var/www/xmr-cart/
    

    Still on 1.0.0? Upgrade straight here; the 1.1.0 refund and late-payment fixes are included.

    Downloads
  • v1.2.0 c839a71595

    btcbob released this 2026-11-07 02:31:26 +00:00 | 1 commits to master since this release

    Optional phone alerts: a one-line SALE alert on your phone for every paid order, alongside the PAID email.

    New

    • ntfy push. Set notify_ntfy_url to a topic on ntfy.sh or your own ntfy server, plus notify_ntfy_token if the topic is protected. Install the ntfy app, subscribe to the topic, done. On ntfy.sh, pick a long, hard-to-guess topic name.
    • SMS from your own phone. Set the notify_sms_* keys to an SMS Gateway for Android phone (local or cloud server mode) and your number.

    The alert carries the store, order number, first item, price and amount paid. No buyer details, same rule as the emails. Both channels are off unless configured, use short timeouts and never throw, so a dead phone or ntfy server can't hold up payment settlement; the email stays the record.

    Upgrade from 1.1.0

    Keep your config.php and data/, replace everything else, then add whichever keys you want from config.example.php. No database changes.

    R=https://git.subgenius.finance/SubGeniusFinance/xmr-cart/releases/download/v1.2.0
    curl -LO $R/xmr-cart-1.2.0.tar.gz -LO $R/xmr-cart-1.2.0.tar.gz.sha256
    sha256sum -c xmr-cart-1.2.0.tar.gz.sha256
    tar xzf xmr-cart-1.2.0.tar.gz
    sudo rsync -a --exclude=config.php --exclude=data/ xmr-cart-1.2.0/ /var/www/xmr-cart/
    

    Still on 1.0.0? Upgrade straight to this release; the 1.1.0 refund and late-payment fixes are included.

    Downloads
  • v1.1.0 d3b28258e2

    btcbob released this 2026-11-06 14:18:25 +00:00 | 2 commits to master since this release

    Refund and late-payment fixes. Upgrade recommended for every v1.0.0 store: these change how money owed back to buyers is tracked.

    What's fixed

    • Return addresses are kept while a refund is owed. The nightly privacy purge used to blank the buyer's XMR return address on underpaid, overpaid or cancelled-after-payment orders, leaving nowhere to send the refund.
    • Late payments are caught. Expired and cancelled orders are watched for late_watch_days (default 30). Coin that arrives after an order closed is recorded and you get a REFUND DUE email.
    • Overpayments after payment are caught. Paid and shipped orders are watched for the same window. Extra coin raises the received total and you get an OVERPAID email.
    • Mark refunded. A button beside "Refund due" in the console. It records the amount the page showed, so coin landing after the page loaded stays due.
    • Underpaid orders expire safely. They wait for the scan to reach the tip plus expiry_grace_minutes, like unpaid ones, so a last-minute top-up isn't missed.
    • Time-locked outputs on a closed order count toward what is owed.
    • Self-healing alerts. Refund totals and alerts are reconciled every poll, so an alert lost to a crash goes out on the next run. The alert latch is atomic.
    • Sturdier worker. One broken order no longer stops the poll run. The late watch is time-budgeted (late_scan_budget_seconds, default 25).
    • Console input. Price fields reject ambiguous input (1,2, abc) instead of 1,234.50 silently becoming 1.00, and round to cents. Stock edits apply as a change from what the form showed, with a one-shot token, so a checkout made while the form was open, or a double-click, can't corrupt stock.
    • status.php honours refunds already marked.

    Upgrade from 1.0.0

    Keep your config.php and data/, replace everything else. New database columns are added automatically on the first request. No config changes needed; late_watch_days and late_scan_budget_seconds are optional.

    R=https://git.subgenius.finance/SubGeniusFinance/xmr-cart/releases/download/v1.1.0
    curl -LO $R/xmr-cart-1.1.0.tar.gz -LO $R/xmr-cart-1.1.0.tar.gz.sha256
    sha256sum -c xmr-cart-1.1.0.tar.gz.sha256
    tar xzf xmr-cart-1.1.0.tar.gz
    sudo rsync -a --exclude=config.php --exclude=data/ xmr-cart-1.1.0/ /var/www/xmr-cart/
    

    Back up data/store.sqlite first. Fresh installs: same steps as 1.0.0, with 1.1.0 in the URLs.

    Downloads
  • v1.0.0 66025ef585

    btcbob released this 2026-10-08 21:44:44 +00:00 | 7 commits to master since this release

    The first tagged release of xmr-cart: a small XMR-only shop in vanilla PHP and SQLite. It verifies payments against your own Monero node with your private view key, fails closed when it can't, and never holds a spend key.

    Install

    R=https://git.subgenius.finance/SubGeniusFinance/xmr-cart/releases/download/v1.0.0
    curl -LO $R/xmr-cart-1.0.0.tar.gz -LO $R/xmr-cart-1.0.0.tar.gz.sha256
    sha256sum -c xmr-cart-1.0.0.tar.gz.sha256
    tar xzf xmr-cart-1.0.0.tar.gz && sudo mv xmr-cart-1.0.0 /var/www/xmr-cart
    cd /var/www/xmr-cart && sudo ./install.sh
    

    Or clone the v1.0.0 tag. The installer checks PHP and its extensions, then asks for the store name, URL and currency, the admin email (all notifications to it, or split by type), the From address, buyer emails on/off, and your network + node (it test-calls the node and catches a wrong-network one). It writes config.php with fresh secrets and prints the nginx block, the cron lines and your setup key. Then open /admin/, enter the setup key, a passphrase and your wallet's address + private view key.

    Requirements: PHP 8.0+ with pdo_sqlite, curl, gd, bcmath, gmp, mbstring; nginx or Apache; cron or a systemd timer; a full, non-pruned Monero node you run.

    What's in 1.0.0

    Shop

    • Catalog in batches, product photos with a gallery, per-item share links and #anchors.
    • A cart: several items, one order, one payment. Stock is reserved atomically, so a limited run can't oversell.
    • Per-item "Needs a shipping address": digital-only carts skip the postal fields.
    • A required XMR return address at checkout (masked, with a show toggle), so refunds have somewhere to go.

    Payments

    • Detection with the view key only, Pedersen commitment check, configurable confirmations.
    • An order never expires while a payment may still be on its way: expiry waits for a full scan to the tip plus a grace period.
    • Underpaid orders hold for 24h, then expire with the received amount on record. Over- and underpayments show Refund due in the admin.
    • No usable XMR price (stale for 15 min, or an implausible jump) stops checkout instead of mispricing it.

    Notifications (all optional)

    • Owner: paid, new order, refund due, payment checks down / back, checkout paused / back, low stock / sold out. Each once per event; one address or one per type. Owner mail never carries buyer details.
    • Buyer: payment received, and shipped with carrier + tracking (links for USPS, UPS, FedEx, DHL).

    Privacy and security

    • Buyer details (name, email, address, phone, return address, tracking) are erased 30 days after shipping, 7 days after an order dies; empty dead orders are deleted.
    • Uploads are re-encoded, which strips EXIF/GPS.
    • First-run setup needs the setup_key from config.php; the store refuses to run with a weak cookie secret; changing the passphrase ends every admin session; Secure cookies on HTTPS.
    • Wallet changes are refused while orders are open.

    Upgrading

    This is the first tagged release. If you run an earlier checkout from master, pull and reload: the database migrates itself (new columns only). Add setup_key and a 32+ character cookie_secret to config.php if they're missing, and for real money list only nodes you run in nodes.

    MIT licensed. Payment verification is SlowBearDigger's xmr-pay-woocommerce engine, unmodified; see LICENSE-THIRD-PARTY.md.

    Downloads