diff --git a/app/PaymentDrivers/Stripe/BACS.php b/app/PaymentDrivers/Stripe/BACS.php
index b51fe4e75357..bc2494ab2b98 100644
--- a/app/PaymentDrivers/Stripe/BACS.php
+++ b/app/PaymentDrivers/Stripe/BACS.php
@@ -38,7 +38,7 @@ class BACS
public function authorizeView(array $data)
{
$customer = $this->stripe->findOrCreateCustomer();
- $session = Session::create([
+ $data['session'] = Session::create([
'payment_method_types' => ['bacs_debit'],
'mode' => 'setup',
'customer' => $customer->id,
@@ -46,7 +46,7 @@ class BACS
'cancel_url' => 'https://example.com/cancel',
]);
- return render('gateways.stripe.bacs.authorize', array_merge($data, $session));
+ return render('gateways.stripe.bacs.authorize', $data);
}
private function buildReturnUrl(): string
{
diff --git a/resources/views/portal/ninja2020/gateways/stripe/bacs/authorize.blade.php b/resources/views/portal/ninja2020/gateways/stripe/bacs/authorize.blade.php
index 18a6d0591764..3c2c7d460102 100644
--- a/resources/views/portal/ninja2020/gateways/stripe/bacs/authorize.blade.php
+++ b/resources/views/portal/ninja2020/gateways/stripe/bacs/authorize.blade.php
@@ -8,7 +8,7 @@
@else
@endif
-
+
@endsection