Skip to content
Snippets Groups Projects
Commit 76085cc7 authored by AdrienHorgnies's avatar AdrienHorgnies
Browse files

[FIX] payment_stripe_checkout_webhook: use jsonrequest over kwargs


Stripe is not sending JSONRPC but plain JSON;
 kwargs is empty, we need to use request.jsonrequest instead.

 Bug was introduced by a1ff4dc25534467e138cdb26f5b52df7dd33b79c

closes odoo/odoo#72332

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent aa58f047
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
import json
import logging
from odoo.http import request
......@@ -13,5 +12,5 @@ class StripeController(http.Controller):
@http.route('/payment/stripe/webhook', type='json', auth='public', csrf=False)
def stripe_webhook(self, **kwargs):
request.env['payment.acquirer'].sudo()._handle_stripe_webhook(kwargs)
request.env['payment.acquirer'].sudo()._handle_stripe_webhook(request.jsonrequest)
return 'OK'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment