From 8df7457c6a96b041a44a58164e92fb8604f00420 Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Mon, 16 Jan 2023 15:00:35 +0100 Subject: [PATCH] Fixes --- app/PaymentDrivers/Stripe/BACS.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/PaymentDrivers/Stripe/BACS.php b/app/PaymentDrivers/Stripe/BACS.php index 990a0401b3a9..cc8b51aa84a6 100644 --- a/app/PaymentDrivers/Stripe/BACS.php +++ b/app/PaymentDrivers/Stripe/BACS.php @@ -96,18 +96,13 @@ class BACS 'payment_method' => $request->token, 'confirm' => true, ]; - $this->stripe->createPaymentIntent($payment_intent_data); + $state['payment_intent'] = $this->stripe->createPaymentIntent($payment_intent_data); $state = [ 'payment_hash' => $request->payment_hash, ]; $state = array_merge($state, $request->all()); - if ($request->has('token') && ! is_null($request->token)) { - $state['store_card'] = false; - } - - $state['payment_intent'] = PaymentIntent::retrieve($state['server_response']->id, array_merge($this->stripe->stripe_connect_auth, ['idempotency_key' => uniqid("st",true)])); $state['customer'] = $state['payment_intent']->customer; $this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $state);