Brownie Points (BP) are the per-Operation's universal currency at the fixed rate 1 BP = $1.00 USD (per standing instruction #30). BP-redemption at a per-business's checkout is currently specified as: the customer enters a BP-amount at checkout; the operator's orb-wallet-gateway plugin's /wp-json/orb-wallet/v1/bp-redeem endpoint reads the per-member's BP balance, debits the BP-amount, applies the BP-amount as a per-cart discount, and returns the discount to the per-business's checkout. The customer pays the gross amount minus the BP-discount at the per-business's Nuvei sub-merchant. The per-business is paid the gross amount minus the BP-discount; the operator absorbs the BP-discount as the per-Operation currency sponsor.
The verification gap: when the customer picks up the per-cart, the per-business's pickup-time staff doesn't know the customer used BPs vs. cash vs. credit. The per-business's order-management system shows "Order #12345, $45.00 paid" but the BP-portion of the transaction is invisible at the pickup moment. The per-business's staff may accidentally give the per-cart to the wrong customer. The customer may claim they didn't use BPs. The per-business's reconciliation at end-of-day has no per-transaction BP-usage breakdown to verify against.
The structural problem: BP-redemption is currently a per-checkout-time event; the per-pickup-time event is a separate verification gap. The operator's GTM accelerates when the per-business's pickup-time staff has a single source of truth for "Order #12345, $45.00 paid, customer used 10 BPs, customer's verification QR code is X." A per-order QR code is the structural piece that bridges the per-checkout-time BP-redemption event to the per-pickup-time verification event.
The per-order QR code has four pieces: generation at per-cart checkout, delivery to the customer, scanning at per-pickup-time by the per-business's staff, and the per-order audit-trail structure.
When the per-cart's checkout completes, the orb-wallet-gateway plugin's /wp-json/orb-wallet/v1/order-complete endpoint generates a per-order QR code. The QR code is a base64-encoded string of the per-order's:
order_id — the per-order's unique identifier (the durable join key across all systems)bp_redeemed — the BP-amount redeemed at this checkout (in cents, or 0 if no BPs were used)cart_total — the per-cart's gross total in centscart_subtotal — the per-cart's subtotal after the BP-discount in centsstore_id — the per-business's WordPress custom post type IDmember_id — the per-customer's Orb-Wallet member IDpickup_window — the per-cart's pickup-window timestampcreated_at — the per-order's creation timestamphmac — a per-order HMAC signature: hash_hmac('sha256', $payload, $operator_secret)POST /wp-json/orb-wallet/v1/order-complete Content-Type: application/json Authorization: Bearer <member_token> { "order_id": "ord_2026_10_05_abc123", "bp_redeemed": 1000, // 10 BPs = $10.00 = 1000 cents "cart_total": 4500, // $45.00 gross "cart_subtotal": 3500, // $35.00 after BP-discount "store_id": "store_small_grocer_xyz", "member_id": "member_abc456", "pickup_window": "2026-10-05T15:00:00Z", "created_at": "2026-10-05T14:35:22Z" } Response 200 OK: { "qr_code": "base64:eyJvcmRlcl9pZCI6Im9yZF8yMDI2...", "qr_url": "https://staging.orb-community.example/qr/ord_2026_10_05_abc123", "expires_at": "2026-10-06T15:00:00Z", "status": "ready_for_pickup" }
The QR code is delivered to the customer via three channels: email (full QR code as a downloadable image), SMS (short URL that resolves to the QR code), and the customer's Orb-Wallet app (the QR code is in the customer's per-order record). The QR code is unique per order; the QR code is single-use; the QR code expires 24 hours after the per-cart's pickup window.
When the customer arrives at the per-business to pick up the per-cart, the customer presents the QR code on their phone. The per-business's pickup-time staff scans the QR code with the per-business's Orb-Wallet scanner (a small per-business-side app on the staff's phone, OR a per-business-staff Orb-Wallet dashboard on a tablet at the pickup window).
The scanner sends the QR code's contents to the orb-wallet-gateway plugin's /wp-json/orb-wallet/v1/order-verify endpoint. The endpoint validates the HMAC signature against the operator's secret; the endpoint checks the QR code's expiry against the current time; the endpoint checks the QR code's single-use status; the endpoint returns the per-order's verification record to the scanner.
POST /wp-json/orb-wallet/v1/order-verify Content-Type: application/json Authorization: Bearer <staff_token> { "qr_code": "base64:eyJvcmRlcl9pZCI6Im9yZF8yMDI2..." } Response 200 OK: { "order_id": "ord_2026_10_05_abc123", "store_name": "Local Roots Grocer", "member_name": "Sarah Johnson", "member_verified": true, "bp_redeemed": 10, "cart_total": 45.00, "cart_subtotal": 35.00, "pickup_window": "2026-10-05T15:00:00Z", "status": "ready_for_pickup", "action": "release_to_customer" }
The per-business's pickup-time staff sees the per-order's verification record on the scanner screen. The staff confirms the customer's identity (name + ID + the customer's verification-photo from standing instruction #26's consent-and-safety surface). The staff releases the per-cart to the customer. The staff marks the per-order as "picked up" in the scanner.
The per-order's BP-redemption state is fully auditable end-to-end. The per-order's audit trail captures three events:
| Event | Timestamp | Actor | What happened |
|---|---|---|---|
| checkout_completed | 2026-10-05T14:35:22Z | Customer (member_abc456) | Per-cart checkout completed; $45.00 paid ($35.00 via Nuvei + 10 BPs redeemed); per-order QR code generated |
| pickup_verified | 2026-10-05T15:08:14Z | Per-business staff (staff_xyz789) | QR code scanned at pickup; customer identity confirmed; per-order marked as picked up |
| pickup_completed | 2026-10-05T15:08:31Z | Per-business staff (staff_xyz789) | Per-cart released to customer; per-order audit trail closed |
The three events form a per-order audit-trail that the per-business can reconcile at end-of-day against the per-business's POS, against the operator's per-business dashboard, and against the per-Operation's BP-issuance-and-redemption ledger. The audit trail is durable, auditable, and verifiable.
The QR-code architecture adds two new endpoints to the orb-wallet-gateway plugin. Both endpoints are ~80-100 lines of PHP each.
/wp-json/orb-wallet/v1/order-completeCalled by the per-business's checkout flow at the moment of payment completion. Generates the per-order QR code + the per-order audit-trail record. The endpoint is idempotent (a second call with the same order_id returns the same QR code without re-debiting BPs).
/wp-json/orb-wallet/v1/order-verifyCalled by the per-business's pickup-time staff scanner. Validates the HMAC signature + the QR code's expiry + the QR code's single-use status. Returns the per-order's verification record. Marks the QR code as "used" in the per-order audit trail. The endpoint is the structural piece for the per-pickup-time verification event.
The per-business's pickup-time staff uses one of two scanner surfaces: (a) a small per-business-side app on the staff's phone, OR (b) a per-business-staff Orb-Wallet dashboard on a tablet at the pickup window. The scanner surface is the structural piece that makes the QR-code architecture operational at the per-business. The scanner surface is the per-business's pickup-time verification piece.
The per-small-grocer vertical adds a third new endpoint: /wp-json/orb-wallet/v1/ebt-split-tender. The endpoint handles the EBT / credit-card split-tender flow that connects the per-small-grocer to the named population (per standing instruction #19: stay-at-home moms, shut-ins, the unemployed, the retired).
POST /wp-json/orb-wallet/v1/ebt-split-tender Content-Type: application/json Authorization: Bearer <member_token> { "order_id": "ord_2026_10_05_abc123", "ebt_amount": 2500, // $25.00 from EBT / SNAP "credit_amount": 2000, // $20.00 from credit card "bp_redeemed": 500 // $5.00 from Brownie Points (optional) } Response 200 OK: { "ebt_processed": 2500, "credit_processed": 2000, "bp_redeemed": 500, "total_processed": 4500, "ebt_merchant_id": "ebt_store_xyz_1234", "nuvei_charge_id": "ch_abc123", "bp_balance_after": 50, "qr_code": "base64:eyJvcmRlcl9pZCI6Im9yZF8yMDI2...", "status": "ready_for_pickup" }
The EBT / SNAP processing routes through the per-small-grocer's EBT merchant (Nuvei supports EBT / SNAP through merchant category code MCC 5411 for grocery). The credit portion routes through Nuvei hosted-fields. The Brownie-Points redemption routes through the BP-redemption endpoint. The three pieces combine for a single per-order audit-trail. The per-order QR code is generated after the split-tender completes.