1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Add new webhhoks for BACS

This commit is contained in:
Lars Kusch 2022-12-17 12:53:54 +01:00
parent 331d4f7173
commit d67fc2d493
2 changed files with 10 additions and 0 deletions

View File

@ -49,6 +49,9 @@ class StripeWebhook implements ShouldQueue
'charge.failed',
'payment_intent.succeeded',
'payment_intent.payment_failed',
'mandate.updated',
'checkout.session.completed',
'payment_method.automatically_updated'
];
public function __construct(string $company_key, int $company_gateway_id)

View File

@ -714,6 +714,13 @@ class StripePaymentDriver extends BaseDriver
}
}
}
} elseif ($request->type === "payment_method.automatically_updated"){
return response()->json([], 200);
} elseif ($request->type === "checkout.session.completed"){
return response()->json([], 200);
} elseif ($request->type === "mandate.updated"){
return response()->json([], 200);
}
return response()->json([], 200);