handling when payout is canceled

This commit is contained in:
jackiettran
2026-01-08 18:12:58 -05:00
parent 8585633907
commit 0ea35e9d6f
2 changed files with 132 additions and 4 deletions

View File

@@ -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);