diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index f54cd8b672c2..a5acec2a4484 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -3215,4 +3215,8 @@ return [ 'checkout_com' => 'Checkout.com', 'footer_label' => 'Copyright © :year Invoice Ninja. All rights reserved.', + + 'credit_card_invalid' => 'Provided credit card number is not valid.', + 'month_invalid' => 'Provided month is not valid.', + 'year_invalid' => 'Provided year is not valid.', ]; diff --git a/resources/views/portal/ninja2020/gateways/authorize/add_credit_card.blade.php b/resources/views/portal/ninja2020/gateways/authorize/add_credit_card.blade.php index acc9b015a41a..c8661ee018d6 100644 --- a/resources/views/portal/ninja2020/gateways/authorize/add_credit_card.blade.php +++ b/resources/views/portal/ninja2020/gateways/authorize/add_credit_card.blade.php @@ -4,6 +4,10 @@ @push('head') + + + + @endpush @section('body') @@ -31,20 +35,17 @@
- @include('portal.ninja2020.gateways.authorize.credit_card') - -
+
{{ ctrans('texts.save_as_default') }}
- +
-
- +
+
@@ -56,11 +57,11 @@ @push('footer') - @if($gateway->getConfigField('testMode')) - - @else - - @endif +@if($gateway->getConfigField('testMode')) + +@else + +@endif @endpush \ No newline at end of file diff --git a/resources/views/portal/ninja2020/gateways/authorize/credit_card.blade.php b/resources/views/portal/ninja2020/gateways/authorize/credit_card.blade.php index 178347e433c2..cd8919d8b4eb 100644 --- a/resources/views/portal/ninja2020/gateways/authorize/credit_card.blade.php +++ b/resources/views/portal/ninja2020/gateways/authorize/credit_card.blade.php @@ -1,4 +1,4 @@ -
+
{{ ctrans('texts.name') }}
@@ -6,35 +6,38 @@
-
+
{{ ctrans('texts.credit_card') }}
- + +
-
+
{{ ctrans('texts.expiration_month') }}
- + +
-
+
{{ ctrans('texts.expiration_year') }}
- + +
-
+
{{ ctrans('texts.cvv') }}
- +
-
+
\ No newline at end of file