handling when payout is canceled
This commit is contained in:
1 parent
8585633907
commit
0ea35e9d6f
2 files changed
+132
-4
No files matched your search
@@ -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