details:   https://code.tryton.org/tryton/commit/bb4d22c544f7
branch:    6.0
user:      Cédric Krier <[email protected]>
date:      Tue Dec 23 12:09:31 2025 +0100
description:
        Define request body when there is no signing secret defined

        Closes #14447
        (grafted from 3561242b561a96629cd1c8af18141e5ffc5c139d)
diffstat:

 modules/account_payment_stripe/routes.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r bd17779f36c7 -r bb4d22c544f7 modules/account_payment_stripe/routes.py
--- a/modules/account_payment_stripe/routes.py  Sat Dec 20 21:20:29 2025 +0100
+++ b/modules/account_payment_stripe/routes.py  Tue Dec 23 12:09:31 2025 +0100
@@ -62,9 +62,9 @@
             ('webhook_identifier', '=', account),
             ])
 
+    request_body = request.get_data(as_text=True)
     if account.webhook_signing_secret:
         sig_header = request.headers['STRIPE_SIGNATURE']
-        request_body = request.get_data(as_text=True)
         try:
             stripe.Webhook.construct_event(
                 request_body, sig_header, account.webhook_signing_secret)

Reply via email to