Skip to content

Commit 28cf60f

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

File tree

1 file changed

+23
-10
lines changed
  • content/applications/finance/payment_acquirers

1 file changed

+23
-10
lines changed

content/applications/finance/payment_acquirers/stripe.rst

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,41 @@ In case your **Webhook Signing Secret** is required to connect with your Stripe
7777
create a webhook either automatically or manually.
7878

7979
.. tabs::
80-
.. tab:: Create the webhook automatically
80+
.. tab:: Manage the webhook automatically
8181

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

85-
.. tab:: Create the webhook manually
85+
.. tip::
86+
To update the webhook, click once again on the :guilabel:`Generate your Webhook` button.
87+
88+
.. tab:: Manage the webhook manually
8689

8790
Visit the `webhooks page on Stripe <https://dashboard.stripe.com/webhooks>`_, or log into your
88-
Stripe dashboard and go to :menuselection:`Developers --> Webhooks`. Then, click on **Add
89-
endpoint** in your **Hosted endpoints** and insert the following data into the pop-up form:
91+
Stripe dashboard and go to :menuselection:`Developers --> Webhooks`. Then, click on
92+
:guilabel:`Add endpoint` in your :guilabel:`Hosted endpoints` and insert the following data
93+
into the pop-up form:
9094

91-
- | In the **Endpoint URL**, enter your Odoo database's URL followed by
95+
- | In the :guilabel:`Endpoint URL`, enter your Odoo database's URL followed by
9296
| `/payment/stripe/webhook`.
9397
| For example: `https://yourcompany.odoo.com/payment/stripe/webhook`
94-
- At the end of the form, you can **Select events** to listen to. Click on it and, in the
95-
**Checkout** section, select **checkout.session.completed**.
98+
- At the bottom of the form, you can select events to listen to. Click on :guilabel:`Select
99+
events`. Then:
100+
101+
- In the :guilabel:`Payment Intent` section, select
102+
:guilabel:`payment_intent.amount_capturable_updated` and
103+
:guilabel:`payment_intent.succeeded`.
104+
- In the :guilabel:`Setup Intent` section, select :guilabel:`setup_intent.succeeded`.
96105

97106
.. note::
98107
It is possible to select other events, but they are currently not processed by Odoo.
99108

100-
When you click on **Add endpoint**, your Webhook is configured. You can then click on
101-
**reveal** to display your signing secret.
109+
When you click on :guilabel:`Add endpoint`, your Webhook is configured. Click on
110+
:guilabel:`reveal` to display your signing secret.
111+
112+
.. tip::
113+
To update an existing webhook, click on it. Then, click on the three dots at the right side
114+
of the :guilabel:`Webhook URL` and on :guilabel:`Update details`.
102115

103116
.. _stripe/local-payment-methods:
104117

0 commit comments

Comments
 (0)