From 9f38380d61393766749cac92a5ba1f4a28a17c14 Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Sat, 17 Dec 2022 07:16:20 +0100 Subject: [PATCH] Fixes --- app/PaymentDrivers/Stripe/BACS.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Stripe/BACS.php b/app/PaymentDrivers/Stripe/BACS.php index 2d857ce065e6..acb724990cf2 100644 --- a/app/PaymentDrivers/Stripe/BACS.php +++ b/app/PaymentDrivers/Stripe/BACS.php @@ -62,7 +62,8 @@ class BACS $session = $this->stripe->stripe->checkout->sessions->retrieve($request->session_id, ['expand' => ['setup_intent']]); $customer = $this->stripe->findOrCreateCustomer(); - $payment_method = $this->stripe->attach($session->setup_intent->payment_method, $customer); + $this->stripe->attach($session->setup_intent->payment_method, $customer); + $payment_method = $this->stripe->getStripePaymentMethod($session->setup_intent->payment_method); $this->storePaymentMethod($payment_method, $customer); } return redirect()->route('client.payment_methods.index');