patx/projectpay
Enable automatic tax for Stripe Checkout
Commit 4394f3e · patx · Nov 2 at 6:36PM
Comments
No comments yet.
Diff
diff --git a/app.py b/app.py
index 7063f81..2c40baa 100644
--- a/app.py
+++ b/app.py
@@ -729,6 +729,7 @@ class InvoiceApp(App):
payload: Dict[str, Any] = {
"mode": "payment",
+ "automatic_tax": {"enabled": True},
"line_items": [{"price": price_id, "quantity": 1}],
"success_url": f"{public_url}?checkout=return",
"cancel_url": f"{public_url}?checkout=cancel",