patx/projectpay

Enable automatic tax for Stripe Checkout

Commit 4394f3e · patx · Nov 2 at 6:36PM

Changeset
4394f3eb8c6d173b405c7e64a660afdce637685a
Parents
3d4813d6b3b15d6530df7407397324abac8ded69

View source at this commit

Comments

No comments yet.

Log in to comment

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",