Stripe Payment Acquirer
payment_stripe_checkout_webhook · odoo/odoo
Merged into payment_stripe in 14.0
-
Security25/25No findings
-
Activity0/25Last human commit 57 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
acquirer_form_stripe— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Stripe Payment Acquirer checkout webhook
Allow configuring a webhook in Stripe to send s2s notifications to Odoo when a Checkout payment is completed. Note that SetupIntent and PaymentIntent events are not listened to, since they are handled 'live' with the customer actively present; the main use case for Stripe webhooks is a Checkout session that gets interrupted before the customer is redirected to Odoo (e.g. network loss, browser crash, closing the tab, etc.).
The webhook should be configured to send its events to <base_url>/payment/stripe/webhook and should only subscribe to checkout.session.completed events to avoid spamming the Odoo server with useless notifications.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
acquirer_form_stripe |
payment.acquirer.form.inherit | payment.acquirer | form | Inherits payment.acquirer_form |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/payment/stripe/webhook |
StripeController.stripe_webhook |
public | json | ALL | csrf off sudo |
Models touched 2
-
stripe_webhook_secretChargroups='base.group_system'help='If you enable webhooks, this secret is used to verify the electronic signature of events sent by Stripe to Odoo. Failing to set this field in Odoo will disable the webhook system for this acquirer entirely.'string='Stripe Webhook Secret'
No public methods.
-
stripe_payment_intentCharreadonly=Truestring='Stripe Payment Intent ID'
No public methods.
Loading…