mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Change klarna integration according to Klarna's rules
This commit is contained in:
parent
07e83900c0
commit
80a7a7ce3f
@ -2,16 +2,22 @@
|
|||||||
|
|
||||||
@section('gateway_head')
|
@section('gateway_head')
|
||||||
@if($gateway->company_gateway->getConfigField('account_id'))
|
@if($gateway->company_gateway->getConfigField('account_id'))
|
||||||
<meta name="stripe-account-id" content="{{ $gateway->company_gateway->getConfigField('account_id') }}">
|
<meta name="stripe-account-id" content="{{ $gateway->company_gateway->getConfigField('account_id') }}">
|
||||||
<meta name="stripe-publishable-key" content="{{ config('ninja.ninja_stripe_publishable_key') }}">
|
<meta name="stripe-publishable-key" content="{{ config('ninja.ninja_stripe_publishable_key') }}">
|
||||||
@else
|
@else
|
||||||
<meta name="stripe-publishable-key" content="{{ $gateway->company_gateway->getPublishableKey() }}">
|
<meta name="stripe-publishable-key" content="{{ $gateway->company_gateway->getPublishableKey() }}">
|
||||||
@endif
|
@endif
|
||||||
<meta name="return-url" content="{{ $return_url }}">
|
<meta name="return-url" content="{{ $return_url }}">
|
||||||
<meta name="amount" content="{{ $stripe_amount }}">
|
<meta name="amount" content="{{ $stripe_amount }}">
|
||||||
<meta name="country" content="{{ $country }}">
|
<meta name="country" content="{{ $country }}">
|
||||||
<meta name="customer" content="{{ $customer }}">
|
<meta name="customer" content="{{ $customer }}">
|
||||||
<meta name="email" content="{{ $gateway->client->present()->email() }}">
|
<meta name="email" content="{{ $gateway->client->present()->email() }}">
|
||||||
|
<meta name="name" content="{{ $gateway->client->present()->name() }}">
|
||||||
|
<meta name="address-2" content="{{ $gateway->client->address2 }}">
|
||||||
|
<meta name="address-1" content="{{ $gateway->client->address1 }}">
|
||||||
|
<meta name="city" content="{{ $gateway->client->city }}">
|
||||||
|
<meta name="state" content="{{ $gateway->client->state }}">
|
||||||
|
<meta name="plz" content="{{ $gateway->client->postal_code }}">
|
||||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@ -23,7 +29,6 @@
|
|||||||
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')])
|
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')])
|
||||||
{{ ctrans('texts.klarna') }} ({{ ctrans('texts.bank_transfer') }})
|
{{ ctrans('texts.klarna') }} ({{ ctrans('texts.bank_transfer') }})
|
||||||
@endcomponent
|
@endcomponent
|
||||||
@include('portal.ninja2020.gateways.stripe.klarna.klarna')
|
|
||||||
@include('portal.ninja2020.gateways.includes.pay_now')
|
@include('portal.ninja2020.gateways.includes.pay_now')
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user