handling when payout is canceled
This commit is contained in:
@@ -71,6 +71,14 @@ router.post("/", async (req, res) => {
|
||||
);
|
||||
break;
|
||||
|
||||
case "payout.canceled":
|
||||
// Payout was canceled before being deposited
|
||||
await StripeWebhookService.handlePayoutCanceled(
|
||||
event.data.object,
|
||||
event.account
|
||||
);
|
||||
break;
|
||||
|
||||
case "account.application.deauthorized":
|
||||
// Owner disconnected their Stripe account from our platform
|
||||
await StripeWebhookService.handleAccountDeauthorized(event.account);
|
||||
|
||||
Reference in New Issue
Block a user