spouliot
4ac62551f4
Fix online payment surcharge — input and validation based on total
...
The payment amount input was capped at BalanceDue (e.g. $5.00) but the
customer was being charged TotalWithSurcharge (e.g. $5.15), causing
validation to reject any attempt to pay the correct total amount.
Input now defaults to and accepts up to TotalWithSurcharge. On submit,
the JS back-calculates the base amount before sending to the server so
the server-side surcharge addition produces the same PaymentIntent total
that the Stripe Elements were initialized with — eliminating the
amount-mismatch error from Stripe on confirmation.
Also calls elements.update() when the amount changes so partial payments
don't cause an Elements/PaymentIntent amount mismatch.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-20 13:16:50 -04:00
..
2026-04-23 21:38:24 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:31:38 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 23:31:38 -04:00
2026-05-10 18:05:29 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-15 21:06:04 -04:00
2026-05-15 20:32:32 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:07:52 -04:00
2026-05-19 20:11:33 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-18 18:49:23 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 23:31:38 -04:00
2026-04-28 21:10:47 -04:00
2026-05-19 20:15:58 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:07:52 -04:00
2026-05-18 18:49:23 -04:00
2026-05-20 11:49:04 -04:00
2026-05-20 11:49:04 -04:00
2026-05-14 23:31:38 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 22:51:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:31:38 -04:00
2026-05-14 23:31:38 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-20 13:16:50 -04:00
2026-05-12 09:03:18 -04:00
2026-05-14 20:09:22 -04:00
2026-05-12 21:40:16 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-10 19:04:10 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 20:09:22 -04:00
2026-05-20 11:49:04 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:31:38 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-15 20:32:32 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 23:31:38 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-10 18:05:29 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 20:09:22 -04:00
2026-05-14 23:07:52 -04:00
2026-05-14 20:09:22 -04:00
2026-04-23 21:38:24 -04:00
2026-04-23 21:38:24 -04:00