mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Website: Update receive-from-stripe webhook to handle failed payments when creating a subscription. (#14348)
Changes: - Added two events to the `STRIPE_EVENTS_SENT_BEFORE_A_SUBSCRIPTION_RECORD_EXISTS` array in the `receive-from-stripe` webhook
This commit is contained in:
parent
5ebeab20f5
commit
e61d91a35e
1 changed files with 2 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ module.exports = {
|
|||
'invoice.finalized',
|
||||
'invoice.paid',
|
||||
'invoice.payment_succeeded',
|
||||
'invoice.payment_failed',
|
||||
'invoice.payment_action_required',
|
||||
];
|
||||
|
||||
// If this event is for a subscription that was just created, we won't have a matching Subscription record in the database. This is because we wait until the subscription's invoice is paid to create the record in our database.
|
||||
|
|
|
|||
Loading…
Reference in a new issue