Fix $0 checkout bypass: remove nonexistent status column
compliance_orders has payment_status, not status. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6d441a5cc0
commit
7909f130c6
1 changed files with 1 additions and 1 deletions
|
|
@ -894,7 +894,7 @@ router.post("/api/v1/checkout/create-session", async (req, res) => {
|
|||
if (zt) {
|
||||
const whereCol = order_type === "compliance_batch" ? "batch_id" : "order_number";
|
||||
await pool.query(
|
||||
`UPDATE ${zt} SET payment_status = 'paid', payment_method = 'free', status = 'pending', surcharge_cents = 0, surcharge_pct = 0 WHERE ${whereCol} = $1`,
|
||||
`UPDATE ${zt} SET payment_status = 'paid', payment_method = 'free', surcharge_cents = 0, surcharge_pct = 0 WHERE ${whereCol} = $1`,
|
||||
[order_id],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue