From b679e4e349372b4106f98c4c50922738637568eb Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Mon, 16 Jan 2023 15:15:45 +0100 Subject: [PATCH] Fixes --- app/PaymentDrivers/Stripe/BACS.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/Stripe/BACS.php b/app/PaymentDrivers/Stripe/BACS.php index 7aaa3e9fbd84..c13122be6cfe 100644 --- a/app/PaymentDrivers/Stripe/BACS.php +++ b/app/PaymentDrivers/Stripe/BACS.php @@ -106,7 +106,7 @@ class BACS $this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $state); $this->stripe->payment_hash->save(); - if ($state['payment_intent']->status == 'succeeded') { + if ($state['payment_intent']->status == 'processing') { $this->stripe->logSuccessfulGatewayResponse(['response' => $state['payment_intent'], 'data' => $this->stripe->payment_hash], SystemLog::TYPE_STRIPE); return $this->processSuccessfulPayment(); @@ -157,7 +157,7 @@ class BACS public function processUnsuccessfulPayment($server_response) { - $this->stripe->sendFailureMail($server_response->cancellation_reason); + $this->stripe->sendFailureMail($server_response); $message = [ 'server_response' => $server_response,