Add support for Apple Pay

This commit is contained in:
Hillel Coren 2017-11-27 19:57:16 +02:00
parent b159037969
commit a9341b95da
2 changed files with 15 additions and 12 deletions

View File

@ -2566,6 +2566,7 @@ $LANG = array(
'verification_file_missing' => 'The verification file is needed to accept payments.', 'verification_file_missing' => 'The verification file is needed to accept payments.',
'apple_pay_domain' => 'Use <code>:domain</code> as the domain in :link.', 'apple_pay_domain' => 'Use <code>:domain</code> as the domain in :link.',
'apple_pay_not_supported' => 'Sorry, Apple/Google Pay isn\'t supported', 'apple_pay_not_supported' => 'Sorry, Apple/Google Pay isn\'t supported',
'optional_payment_methods' => 'Optional Payment Methods',
); );

View File

@ -186,11 +186,25 @@
@if (!$accountGateway || $accountGateway->gateway_id == GATEWAY_STRIPE) @if (!$accountGateway || $accountGateway->gateway_id == GATEWAY_STRIPE)
<div class="stripe-ach"> <div class="stripe-ach">
{!! Former::plaintext(' ')->value('<b>' . trans('texts.optional_payment_methods') . '</b>') !!}
{!! Former::checkbox('enable_ach') {!! Former::checkbox('enable_ach')
->label(trans('texts.ach')) ->label(trans('texts.ach'))
->text(trans('texts.enable_ach')) ->text(trans('texts.enable_ach'))
->value(1) !!} ->value(1) !!}
{!! Former::checkbox('enable_sofort')
->label(trans('texts.sofort'))
->text(trans('texts.enable_sofort'))
->value(1) !!}
<!--
{!! Former::checkbox('enable_sepa')
->label('SEPA')
->text(trans('texts.enable_sepa'))
->value(1) !!}
-->
{!! Former::checkbox('enable_apple_pay') {!! Former::checkbox('enable_apple_pay')
->label(trans('texts.apple_pay')) ->label(trans('texts.apple_pay'))
->text(trans('texts.enable_apple_pay')) ->text(trans('texts.enable_apple_pay'))
@ -208,18 +222,6 @@
->label('verification_file') !!} ->label('verification_file') !!}
@endif @endif
{!! Former::checkbox('enable_sofort')
->label(trans('texts.sofort'))
->text(trans('texts.enable_sofort'))
->value(1) !!}
<!--
{!! Former::checkbox('enable_sepa')
->label('SEPA')
->text(trans('texts.enable_sepa'))
->value(1) !!}
-->
{!! Former::checkbox('enable_bitcoin') {!! Former::checkbox('enable_bitcoin')
->label(trans('texts.bitcoin')) ->label(trans('texts.bitcoin'))
->text(trans('texts.enable_bitcoin')) ->text(trans('texts.enable_bitcoin'))