Skip to content

Commit

Permalink
Lists
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofix committed Nov 17, 2024
1 parent d97f359 commit f0582d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/webhooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ The webhook URL structure in django-payments follows this pattern:
``{protocol}://{host}/payments/process/{variant}/``

Where:

- ``{protocol}``: Configured in ``PAYMENT_PROTOCOL`` (typically "http" or "https")
- ``{host}``: Configured in ``PAYMENT_HOST``
- ``{variant}``: The name you've configured in PAYMENT_VARIANTS


For example, with this configuration:

.. code-block:: python
Expand Down Expand Up @@ -76,10 +78,12 @@ webhooks. Follow these steps to configure webhooks in your Stripe Dashboard:
For example: ``https://your-app.com/payments/process/stripe/``
#. From the "Events to send" dropdown, choose the specific events you want to
receive notifications for. You need (at least) these events:

- checkout.session.async_payment_failed
- checkout.session.async_payment_succeeded
- checkout.session.completed
- checkout.session.expired

#. Click on the "Add endpoint" button to save your webhook listener.
#. Once the webhook is created, you will see its details in the "Webhooks"
section. Take note of the "Signing secret" provided by Stripe as you will
Expand Down

0 comments on commit f0582d4

Please sign in to comment.