Fixed missing link in readme
This commit is contained in:
@@ -204,13 +204,13 @@ app.post('/webhook', async (req, res) => {
|
||||
res.status(200).send('Webhook received');
|
||||
|
||||
switch (webhook.event) {
|
||||
case 'subscription.create':
|
||||
case 'charge.success':
|
||||
case 'invoice.update':
|
||||
case 'invoice.payment_failed':
|
||||
case 'subscription.not_renew':
|
||||
case 'subscription.disable':
|
||||
case 'subscription.expiring_cards':
|
||||
case 'subscription.create': // Sent when a subscription is created successfully
|
||||
case 'charge.success': // Sent when a subscription payment is made successfully
|
||||
case 'invoice.create': // Sent when an invoice is created to capture an upcoming subscription charge. Should happen 2-3 days before the charge happens
|
||||
case 'invoice.payment_failed': // Sent when a subscription payment fails
|
||||
case 'subscription.not_renew': // Sent when a subscription is canceled to indicate that it won't be charged on the next payment date
|
||||
case 'subscription.disable': // Sent when a canceled subscription reaches the end of the subscription period
|
||||
case 'subscription.expiring_cards': // Sent at the beginning of each month with info on what cards are expiring that month
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user