handling if owner disconnects their stripe account
This commit is contained in:
@@ -71,6 +71,11 @@ router.post("/", async (req, res) => {
|
||||
);
|
||||
break;
|
||||
|
||||
case "account.application.deauthorized":
|
||||
// Owner disconnected their Stripe account from our platform
|
||||
await StripeWebhookService.handleAccountDeauthorized(event.account);
|
||||
break;
|
||||
|
||||
case "charge.dispute.created":
|
||||
// Renter disputed a charge with their bank
|
||||
await DisputeService.handleDisputeCreated(event.data.object);
|
||||
|
||||
Reference in New Issue
Block a user