-
- Downloads
[IMP] payment_stripe: integrate stripe with new checkout api
There is two payment flow in stripe: 1) Redirection Flow (Form Based): in this flow, the user will redirect to stripe website for payment - create a session for a user and redirect the user to stripe with that session - after successful payment, the user will redirect back to odoo - get all the details of charge by using payment intent API - if user have tick save data then the token will be created 2) S2S Flow: after clicking on pay now button, one popup display with card element element is provided by a stripe with all validation facilities After submitting details, payment flow is - create payment method with card element on stripe - create a customer with partner email on stripe - attach customer to the payment method on stripe - create a token with customer and payment method in odoo - create payment intent in odoo - make a request to stripe - after successful request, payment will be charged for that card task- 1986267 closes: https://github.com/odoo/odoo/pull/33978
Showing
- addons/payment_stripe/controllers/main.py 6 additions, 61 deletionsaddons/payment_stripe/controllers/main.py
- addons/payment_stripe/models/payment.py 121 additions, 151 deletionsaddons/payment_stripe/models/payment.py
- addons/payment_stripe/static/src/js/payment_form.js 154 additions, 0 deletionsaddons/payment_stripe/static/src/js/payment_form.js
- addons/payment_stripe/static/src/js/stripe.js 65 additions, 125 deletionsaddons/payment_stripe/static/src/js/stripe.js
- addons/payment_stripe/static/src/xml/stripe_templates.xml 22 additions, 15 deletionsaddons/payment_stripe/static/src/xml/stripe_templates.xml
- addons/payment_stripe/views/payment_stripe_templates.xml 13 additions, 40 deletionsaddons/payment_stripe/views/payment_stripe_templates.xml
Loading
Please register or sign in to comment