details: https://code.tryton.org/tryton/commit/59332f76c48f
branch: default
user: Cédric Krier <[email protected]>
date: Thu Sep 03 15:42:15 2026 +0200
description:
Add missing _method to url for webhooks
diffstat:
modules/account_payment_braintree/account.py | 3 ++-
modules/account_payment_stripe/payment.py | 3 ++-
modules/web_shop_shopify/web.py | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r cfd1ae749fc2 -r 59332f76c48f
modules/account_payment_braintree/account.py
--- a/modules/account_payment_braintree/account.py Thu Sep 03 11:52:08
2026 +0000
+++ b/modules/account_payment_braintree/account.py Thu Sep 03 15:42:15
2026 +0200
@@ -828,7 +828,8 @@
if not self.webhook_identifier:
return
return BraintreeRouter.url_for(
- 'webhooks_endpoint', account=self.webhook_identifier)
+ 'webhooks_endpoint', account=self.webhook_identifier,
+ _method='POST')
@property
def configuration(self):
diff -r cfd1ae749fc2 -r 59332f76c48f modules/account_payment_stripe/payment.py
--- a/modules/account_payment_stripe/payment.py Thu Sep 03 11:52:08 2026 +0000
+++ b/modules/account_payment_stripe/payment.py Thu Sep 03 15:42:15 2026 +0200
@@ -1031,7 +1031,8 @@
if not self.webhook_identifier:
return ''
return StripeRouter.url_for(
- 'webhooks_endpoint', account=self.webhook_identifier)
+ 'webhooks_endpoint', account=self.webhook_identifier,
+ _method='POST')
@classmethod
def default_setup_intent_delay(cls):
diff -r cfd1ae749fc2 -r 59332f76c48f modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py Thu Sep 03 11:52:08 2026 +0000
+++ b/modules/web_shop_shopify/web.py Thu Sep 03 15:42:15 2026 +0200
@@ -242,7 +242,8 @@
if not self.name:
return
- return ShopifyRouter.url_for('webhook_order', shop=self.name)
+ return ShopifyRouter.url_for(
+ 'webhook_order', shop=self.name, _method='POST')
@property
def is_managing_gift_card(self):