Skip to content

Commit

Permalink
Checkout Sessions will now sync
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav13081994 authored and jleclanche committed Aug 9, 2021
1 parent 0ff627e commit a50bc47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion djstripe/event_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def dispute_webhook_handler(event):


@webhooks.handler(
"checkout",
"coupon",
"file",
"invoice",
Expand All @@ -240,11 +241,12 @@ def dispute_webhook_handler(event):
)
def other_object_webhook_handler(event):
"""
Handle updates to coupon, file, invoice, invoiceitem, payment_intent,
Handle updates to checkout, coupon, file, invoice, invoiceitem, payment_intent,
plan, product, setup_intent, subscription_schedule, source, tax_rate
and transfer objects.
Docs for:
- checkout: https://stripe.com/docs/api/checkout/sessions
- coupon: https://stripe.com/docs/api/coupons
- file: https://stripe.com/docs/api/files
- invoice: https://stripe.com/docs/api/invoices
Expand All @@ -261,6 +263,7 @@ def other_object_webhook_handler(event):
"""

target_cls = {
"checkout": models.Session,
"coupon": models.Coupon,
"file": models.File,
"invoice": models.Invoice,
Expand Down

0 comments on commit a50bc47

Please sign in to comment.