real middleman: BTCPay payment gate + webhook + Printful adapter + checkout redirect

This commit is contained in:
drjones
2026-08-26 16:52:04 -07:00
parent f2482c72fb
commit 3037f3c996
11 changed files with 242 additions and 10 deletions

View File

@@ -77,9 +77,11 @@ CREATE TABLE orders (
shipping_cost NUMERIC(12,2) DEFAULT 0,
fees NUMERIC(12,2) DEFAULT 0,
profit NUMERIC(12,2) DEFAULT 0,
status TEXT NOT NULL DEFAULT 'new', -- new|paid|fraud_check|supplier_order|confirmed|shipped|delivered|cancelled|refunded
status TEXT NOT NULL DEFAULT 'new', -- new|pending_payment|paid|fraud_check|supplier_order|confirmed|shipped|delivered|cancelled|refunded
tracking TEXT,
carrier TEXT,
btcpay_invoice_id TEXT,
supplier_order_ref TEXT,
created_at TIMESTAMPTZ DEFAULT now(),
updated_at TIMESTAMPTZ DEFAULT now()
);