Fixed missing link in readme

This commit is contained in:
tolu-paystack
2023-03-09 15:23:09 +01:00
parent 6f53b7d3df
commit ced02740bb
4 changed files with 383 additions and 12 deletions
+7 -7
View File
@@ -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
}
}
});