diff options
Diffstat (limited to 'addons/payment_stripe/controllers/main.py')
| -rw-r--r-- | addons/payment_stripe/controllers/main.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/payment_stripe/controllers/main.py b/addons/payment_stripe/controllers/main.py index f446375d429..a92e3cb2752 100644 --- a/addons/payment_stripe/controllers/main.py +++ b/addons/payment_stripe/controllers/main.py @@ -5,6 +5,7 @@ import werkzeug from odoo import http from odoo.http import request +from odoo.addons.payment.controllers.portal import PaymentProcessing _logger = logging.getLogger(__name__) @@ -93,4 +94,6 @@ class StripeController(http.Controller): _logger.info('Stripe: entering form_feedback with post data %s', pprint.pformat(response)) if response: request.env['payment.transaction'].sudo().with_context(lang=None).form_feedback(response, 'stripe') - return post.pop('return_url', '/') + # add the payment transaction into the session to let the page /payment/process to handle it + PaymentProcessing.add_payment_transaction(tx) + return "/payment/process" |
