summaryrefslogtreecommitdiff
path: root/addons/payment_stripe/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/payment_stripe/controllers/main.py')
-rw-r--r--addons/payment_stripe/controllers/main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/payment_stripe/controllers/main.py b/addons/payment_stripe/controllers/main.py
index d506621e5a3..5b5d70bcf6d 100644
--- a/addons/payment_stripe/controllers/main.py
+++ b/addons/payment_stripe/controllers/main.py
@@ -48,3 +48,7 @@ class StripeController(http.Controller):
acquirer = request.env['payment.acquirer'].browse(int(acquirer_id))
res = acquirer._create_setup_intent(kwargs)
return res.get('client_secret')
+
+ @http.route('/payment/stripe/s2s/process_payment_intent', type='json', auth='public', csrf=False)
+ def stripe_s2s_process_payment_intent(self, **post):
+ return request.env['payment.transaction'].sudo().form_feedback(post, 'stripe')