From 15eeb6d1011840df55183957676ffea3243a3018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 13 Sep 2021 17:10:59 +0200 Subject: [PATCH] Change accepted webhook type --- app/PaymentDrivers/StripePaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index 891bb9697a80..eab7c40dd1ce 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -422,7 +422,7 @@ class StripePaymentDriver extends BaseDriver // Allow app to catch up with webhook request. sleep(2); - if ($request->type === 'charge.succeeded' || $request->type === 'source.chargeable') { + if ($request->type === 'charge.succeeded' || $request->type === 'payment_intent.succeeded') { foreach ($request->data as $transaction) { $payment = Payment::query() ->where('transaction_reference', $transaction['id'])