Skip to content

Commit 0546ecb

Browse files
committed
[IMP] stripe: add information for webhook creation
The events we are listening in the webhooks changed. task-2766383
1 parent 7316152 commit 0546ecb

File tree

1 file changed

+26
-17
lines changed
  • content/applications/finance/payment_acquirers

1 file changed

+26
-17
lines changed

content/applications/finance/payment_acquirers/stripe.rst

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -81,29 +81,38 @@ Webhook Signing Secret
8181

8282
To retrieve the webhook signing secret, create a webhook either automatically or manually.
8383

84-
Create the webhook automatically
85-
********************************
84+
.. tabs::
85+
.. tab:: Manage the webhook automatically
8686

87-
Make sure your :ref:`Publishable and Secret keys <stripe/api_keys>` are filled in, then click on the
88-
*Generate your Webhook* button.
87+
Make sure your :ref:`Publishable and Secret keys <stripe/api_keys>` are filled in, then click
88+
on the *Generate your Webhook* button.
8989

90-
Create the webhook manually
91-
***************************
90+
.. note::
91+
To update the webhook, you can click once again on the *Generate your Webhook* button.
9292

93-
Visit the `webhooks page on Stripe <https://dashboard.stripe.com/webhooks>`_, or log into your
94-
Stripe dashboard and go to :menuselection:`Developers --> Webhooks`. Then, click on **Add endpoint**
95-
in your **Hosted endpoints** and insert the following data into the pop-up form:
93+
.. tab:: Manage the webhook manually
9694

97-
- | In the **Endpoint URL**, enter your Odoo database's URL followed by `/payment/stripe/webhook`.
98-
| For example: `https://yourcompany.odoo.com/payment/stripe/webhook`
99-
- At the end of the form, you can **Select events** to listen to. Click on it and, in the
100-
**Checkout** section, select **checkout.session.completed**.
95+
Visit the `webhooks page on Stripe <https://dashboard.stripe.com/webhooks>`_, or log into your
96+
Stripe dashboard and go to :menuselection:`Developers --> Webhooks`. Then, click on **Add
97+
endpoint** in your **Hosted endpoints** and insert the following data into the pop-up form:
10198

102-
.. note::
103-
It is possible to select other events, but they are currently not processed by Odoo.
99+
- | In the **Endpoint URL**, enter your Odoo database's URL followed by
100+
| `/payment/stripe/webhook`.
101+
| For example: `https://yourcompany.odoo.com/payment/stripe/webhook`
102+
- At the end of the form, you can **Select events** to listen to. Click on it. In the
103+
**Payment Intent** section, select **payment_intent.amount_capturable_updated** and
104+
**payment_intent.succeeded**. In the **Setup Intent** section, select
105+
**setup_intent.succeeded**.
104106

105-
When you click on **Add endpoint**, your Webhook is configured. You can then click on **reveal** to
106-
display your signing secret.
107+
.. note::
108+
It is possible to select other events, but they are currently not processed by Odoo.
109+
110+
When you click on **Add endpoint**, your Webhook is configured. You can then click on
111+
**reveal** to display your signing secret.
112+
113+
.. note::
114+
You can update an existing webhook by clicking on your webhook. Within the dots on the
115+
right side of the address, you can then **Update details**
107116

108117
.. _stripe/local-payment-methods:
109118

0 commit comments

Comments
 (0)