BP-as-Discount Architecture

Pattern A · Pre-transaction BP-discount · Nuvei unchanged · Operator as per-Operation currency sponsor · 05 October 2026 (Monday, UTC)

1. The operator's decision, named honestly

The operator confirmed on 05 October 2026: "the best answer is the one that offers the least resistance on all sides." Pattern A is the pattern that honors the operator's decision. Pattern A requires zero configuration change from Nuvei, zero configuration change from the per-business, zero change from the customer's checkout flow. The only party that changes is the operator, who builds one new endpoint + one new database schema. The audit-trail is per-business-side (the per-business's Orb-Wallet dashboard shows the per-transaction BP-discount); the per-Operation's currency discipline (standing instruction #30's fixed-rate 1 BP = $1.00 USD) holds; the "we never touch the diner's money" structural promise holds.

This sub-block is the durable-record surface for Pattern A. The architecture is documented in plain words, with the pre-transaction BP-discount adjustment, the per-Operation BP-issuance-and-redemption ledger structure, the operator-as-per-Operation-currency-sponsor discipline, and the three failure modes Pattern A defends against.

2. The Pattern A flow, end-to-end

The Pattern A flow has six steps: customer adds items to cart → customer enters BP-amount at checkout → orb-wallet-gateway endpoint validates + debits + applies BP-discount → customer's net payment goes to per-business's Nuvei sub-merchant → per-business is settled net of BP-discount → operator's per-Operation ledger tracks the BP-discount as a currency-sponsor credit.

2.1 Customer adds items to cart

The customer's per-cart at the per-business is the gross amount (e.g., $45.00). The customer adds items from the per-business's inventory catalog; the per-cart total is the sum of all item amounts. The per-cart subtotal is the gross amount; the per-cart subtotal is what the customer would pay without any BP-discount.

2.2 Customer enters BP-amount at checkout

The customer's per-business checkout flow has a BP-amount input field. The customer enters the BP-amount they want to redeem (e.g., 10 BPs = $10.00). The orb-wallet-gateway's checkout JavaScript reads the customer's per-customer BP-balance from the per-Operation ledger (via an authenticated endpoint); the JavaScript validates the BP-amount is ≤ the customer's BP-balance and ≤ the per-cart subtotal; the JavaScript sends the BP-amount to the orb-wallet-gateway's /wp-json/orb-wallet/v1/bp-redeem endpoint when the customer submits checkout.

2.3 Orb-wallet-gateway endpoint validates + debits + applies BP-discount

The endpoint receives the BP-amount; the endpoint validates the customer's per-customer BP-balance is sufficient; the endpoint debits the BP-amount from the per-Operation ledger (creates a new ledger entry with post-status = "redeemed", order_id, member_id, store_id, bp_amount); the endpoint applies the BP-discount to the per-cart subtotal (e.g., $45.00 - $10.00 = $35.00 net); the endpoint returns the per-cart net amount + the new BP-balance to the checkout JavaScript.

2.4 Customer's net payment goes to per-business's Nuvei sub-merchant

The customer's payment at the per-business's Nuvei sub-merchant is the net amount ($35.00). Nuvei sees a normal $35.00 transaction. Nuvei's processing pipeline, signed tax forms, per-transaction compliance, chargeback flow, and dispute resolution all work as-is. Nuvei doesn't see the BP-discount as a separate line item because the BP-discount is a per-business-side pre-transaction adjustment, not a Nuvei-side post-transaction adjustment.

2.5 Per-business is settled net of BP-discount

The per-business's Nuvei sub-merchant receives the net settlement ($35.00). The per-business sees the net settlement as a normal transaction; the per-business's per-transaction accounting treats the $35.00 as the customer's net payment. The per-business's reconciliation at end-of-day reconciles the per-business's Nuvei statement against the per-business's Orb-Wallet dashboard; the per-business's Orb-Wallet dashboard shows the per-transaction BP-discount as a per-business-side line item.

2.6 Operator's per-Operation ledger tracks the BP-discount as a currency-sponsor credit

The operator's per-Operation ledger captures the BP-discount ($10.00) as a per-Operation currency-sponsor credit. The ledger entry is the per-Operation-internal record of "we absorbed $10.00 of this customer's per-cart as the per-Operation currency sponsor." The ledger entry is auditable against the per-business's per-transaction BP-discount record on the per-order ID.

3. The per-Operation BP-issuance-and-redemption ledger schema

The per-Operation ledger is a WordPress custom post type orb_wallet_bp_ledger. The ledger captures every BP-issuance + every BP-redemption with the post fields below.

post_title        = ledger entry ID (auto-generated: bp_2026_10_05_abc123)
post_status       = issued | redeemed | sponsor_credit | expired | reversed
_orb_member_id     = per-customer's Orb-Wallet member ID
_orb_order_id      = per-order ID (for redemptions + sponsor_credits)
_orb_store_id      = per-business's WordPress custom post type ID
_orb_bp_amount     = BP-amount (in BPs, where 1 BP = $1.00 USD)
_orb_event_type    = earn | redeem | sponsor | expire | reverse
_orb_source        = source of the BP-issuance (charity, marketplace, dating, holiday, orb-food, orb-share, member-signup, sustained-allocation)
_orb_grade_at_issuance = per-customer's grade at the time of issuance (member, contributor, advocate, steward)
_orb_balance_after = per-customer's BP-balance after this ledger entry
_orb_created_at    = timestamp of the ledger entry
The ledger is the per-Operation's source-of-truth for BPs. Every BP-issuance creates a ledger entry with post-status = "issued"; every BP-redemption creates a ledger entry with post-status = "redeemed" + the per-order ID; every BP-discount absorption creates a ledger entry with post-status = "sponsor_credit" + the per-order ID. The per-customer's BP-balance is computed as sum(issued) - sum(redeemed) - sum(expired) at any point in time. The ledger is auditable, verifiable, and durable.

4. The five sides, each with their resistance profile

SideWhat changesWhat doesn't changeResistance
Nuvei Nothing Nuvei sees a normal $35.00 transaction; Nuvei's processing pipeline, signed tax forms, per-transaction compliance, chargeback flow, and dispute resolution all work as-is Zero
Per-business Nothing (beyond what's already done at the Orb-Wallet dashboard) Per-business's existing reconciliation works as-is; per-business's Nuvei sub-merchant ID unchanged; per-business's settlement currency unchanged; per-business's PCI compliance surface unchanged Zero
Customer Nothing Customer sees the BP-discount applied at checkout BEFORE paying; customer pays the net amount; customer's payment-method behavior is unchanged Zero
Operator Build one new endpoint (~50 lines of PHP) + one new database schema (WordPress custom post type orb_wallet_bp_ledger) Operator's existing orb-wallet-gateway plugin architecture, Nuvei integration, AffiliateWP Pro hook, per-business sub-merchant setup 1-2 days of build, then zero ongoing
Per-Operation (the moral reading) Operator absorbs the BP-discount as the per-Operation currency sponsor Per-Operation currency discipline (1 BP = $1.00 USD); "we never touch the diner's money" structural promise; per-Operation ledger as source-of-truth for BPs Zero — Pattern A IS the per-Operation currency discipline in code form
The least-resistance pattern is the pattern that minimizes the count of parties that have to change their existing workflow. Pattern A: only the operator changes (builds the endpoint + the ledger); everyone else's existing workflow is unchanged. Pattern A is also the pattern that maps directly onto the existing standing-instructions / per-Operation currency discipline. The two reasons converge on the same pattern.

5. The three failure modes Pattern A defends against

Failure mode 1: Nuvei's per-transaction compliance breaks if BPs are a Nuvei-side adjustment.

Defense: Pattern A keeps BPs as a per-Operation-side pre-transaction adjustment. Nuvei's per-transaction compliance is unchanged. Nuvei processes a normal $35.00 transaction; Nuvei's signed tax forms, chargeback flow, and dispute resolution work as-is. The BP-discount is invisible to Nuvei.
Failure mode 2: The per-Operation's currency discipline breaks if BPs are a per-Nuvei-side rate.

Defense: Pattern A keeps the per-Operation currency rate at 1 BP = $1.00 USD (per standing instruction #30). Nuvei's cashback rules don't control the rate. The per-Operation's BP-issuance-and-redemption ledger is the source-of-truth for the per-Operation currency; Nuvei never sees the rate.
Failure mode 3: The "we never touch the diner's money" structural promise breaks if BPs are a Nuvei-side cashback.

Defense: Pattern A keeps the BP-discount as a per-Operation-side pre-transaction adjustment. Nuvei never sees the BP-discount. The per-Operation's currency-sponsor credit is a per-Operation-internal ledger entry, not a Nuvei-side entry. The "we never touch the diner's money" structural promise holds.

6. The connection to standing instructions #19, #20, #30

Connection to standing instruction #19 (Foundation). The operation exists to create real income opportunities for people struggling to make ends meet. The named population: stay-at-home moms, shut-ins, the unemployed, the retired. Pattern A is the architecture that makes the per-Operation's quality-of-life surface accessible to the named population — the per-small-grocer accepts BPs + EBT / SNAP + the charity-allocation default; the BP-discount is a per-Operation-side pre-transaction adjustment that the operator absorbs as the per-Operation currency sponsor. The named population benefits from the BP-discount; the named population doesn't see Nuvei's processing; the named population's payment experience is unchanged.
Connection to standing instruction #20 (BLESS and PROTECT manifesto). The honesty gap: institutional enemies will not announce themselves. Pattern A's three failure modes are the structural protections for the per-Operation currency's integrity. Pattern A keeps BPs as a per-Operation-side pre-transaction adjustment; Nuvei never sees the BP-discount; the per-Operation's currency discipline holds; the "we never touch the diner's money" structural promise holds. Pattern A is the structural protection for the per-Operation currency's integrity.
Connection to standing instruction #30 (ORB-Share Community). Brownie Points (BP) are the operation's quality-of-life surface. The fixed-rate 1 BP = $1.00 USD discipline. The per-Operation-currency-sponsor model (operator absorbs the BP-discount). Pattern A is the pattern that honors both disciplines: BPs are issued at the fixed-rate; BPs are redeemed at the fixed-rate; the operator absorbs the BP-discount; Nuvei is unchanged. Pattern A is the pattern that makes the per-Operation currency surface operational.

7. The Pattern A vs. the alternatives, named honestly

PatternWhat changesProsConsVerdict
A: BP-as-discount Operator only Zero Nuvei change, zero per-business change, zero customer change; per-Operation currency discipline holds; "we never touch the diner's money" holds Per-business's Nuvei statement doesn't show BP-discount line; per-business's reconciliation is per-business-side via Orb-Wallet dashboard Recommended
B: BP-as-cashback Nuvei configures per-merchant cashback rules Nuvei's reconciliation surfaces the cashback line; customer sees familiar cashback pattern Nuvei controls the rate (breaks per-Operation currency discipline); customer doesn't actually have a BP-balance (BP is just Nuvei's cashback); undermines the per-Operation currency surface Structurally wrong — skip
C: BP-as-loyalty-credit Per-business absorbs the loyalty-credit cost Per-business sees full gross amount as revenue; customer sees familiar loyalty-credit pattern Per-business absorbs the cost (not the operator); customer's BP-balance grows but isn't redeemable at checkout; audit trail is per-business-side only Right answer only if operator wants per-business to absorb the cost
D: BP-as-gift-card Per-business maintains per-customer gift-card ledger Per-business's gift-card liability is a standard accounting concept; customer sees familiar gift-card pattern Per-business has to maintain per-customer ledger; BP-balance is per-business-side (not operation-wide); audit trail is per-business-side only Right answer only if operator wants per-business-side accounting