diff --git a/api/src/routes/checkout.ts b/api/src/routes/checkout.ts index 8bb7439..401816e 100644 --- a/api/src/routes/checkout.ts +++ b/api/src/routes/checkout.ts @@ -979,6 +979,18 @@ router.post("/api/v1/checkout/create-session", async (req, res) => { ...(erpnextCustomer ? { erpnext_customer: erpnextCustomer } : {}), }, payment_intent_data: paymentIntentData, + // ACH via Plaid: verify account balance before accepting payment + ...(payment_method === "ach" ? { + payment_method_options: { + us_bank_account: { + financial_connections: { + permissions: ["payment_method", "balances"], + prefetch: ["balances"], + }, + verification_method: "instant", + }, + }, + } : {}), }); // (Sales Order already created above, before gateway split)