mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes
This commit is contained in:
parent
f9434c8cc1
commit
cb593be1de
@ -38,7 +38,7 @@ class BACS
|
|||||||
public function authorizeView(array $data)
|
public function authorizeView(array $data)
|
||||||
{
|
{
|
||||||
$customer = $this->stripe->findOrCreateCustomer();
|
$customer = $this->stripe->findOrCreateCustomer();
|
||||||
$session = Session::create([
|
$data['session'] = Session::create([
|
||||||
'payment_method_types' => ['bacs_debit'],
|
'payment_method_types' => ['bacs_debit'],
|
||||||
'mode' => 'setup',
|
'mode' => 'setup',
|
||||||
'customer' => $customer->id,
|
'customer' => $customer->id,
|
||||||
@ -46,7 +46,7 @@ class BACS
|
|||||||
'cancel_url' => 'https://example.com/cancel',
|
'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
|
private function buildReturnUrl(): string
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
@else
|
@else
|
||||||
<meta name="stripe-publishable-key" content="{{ $gateway->getPublishableKey() }}">
|
<meta name="stripe-publishable-key" content="{{ $gateway->getPublishableKey() }}">
|
||||||
@endif
|
@endif
|
||||||
<meta name="stripe-redirect-url" content="{{ $session->url }}">
|
<meta name="stripe-redirect-url" content="{{ $data['session']->url }}">
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user