Minor fixes
This commit is contained in:
parent
f9434c8cc1
commit
cb593be1de
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
@else
|
||||
<meta name="stripe-publishable-key" content="{{ $gateway->getPublishableKey() }}">
|
||||
@endif
|
||||
<meta name="stripe-redirect-url" content="{{ $session->url }}">
|
||||
<meta name="stripe-redirect-url" content="{{ $data['session']->url }}">
|
||||
|
||||
@endsection
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue