mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Added translation for payment issues
This commit is contained in:
parent
cf3f6dc84a
commit
23ec133be9
4
resources/js/clients/payments/stripe-acss.js
vendored
4
resources/js/clients/payments/stripe-acss.js
vendored
@ -30,14 +30,14 @@ class ProcessACSS {
|
||||
|
||||
if (document.getElementById('acss-name').value === "") {
|
||||
document.getElementById('acss-name').focus();
|
||||
errors.textContent = "Name required.";
|
||||
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||
errors.hidden = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (document.getElementById('acss-email-address').value === "") {
|
||||
document.getElementById('acss-email-address').focus();
|
||||
errors.textContent = "Email required.";
|
||||
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
|
||||
errors.hidden = false;
|
||||
return ;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ class ProcessBANCONTACTPay {
|
||||
let errors = document.getElementById('errors');
|
||||
|
||||
if (!document.getElementById('bancontact-name').value) {
|
||||
errors.textContent = "Enter name";
|
||||
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||
errors.hidden = false;
|
||||
console.log("name");
|
||||
return ;
|
||||
|
6
resources/js/clients/payments/stripe-becs.js
vendored
6
resources/js/clients/payments/stripe-becs.js
vendored
@ -59,14 +59,14 @@ class ProcessBECS {
|
||||
|
||||
if (document.getElementById('becs-name').value === "") {
|
||||
document.getElementById('becs-name').focus();
|
||||
errors.textContent = "Name required.";
|
||||
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||
errors.hidden = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (document.getElementById('becs-email-address').value === "") {
|
||||
document.getElementById('becs-email-address').focus();
|
||||
errors.textContent = "Email required.";
|
||||
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
|
||||
errors.hidden = false;
|
||||
return ;
|
||||
}
|
||||
@ -74,7 +74,7 @@ class ProcessBECS {
|
||||
|
||||
if (!document.getElementById('becs-mandate-acceptance').checked) {
|
||||
document.getElementById('becs-mandate-acceptance').focus();
|
||||
errors.textContent = "Accept Terms";
|
||||
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
|
||||
errors.hidden = false;
|
||||
console.log("Terms");
|
||||
return ;
|
||||
|
2
resources/js/clients/payments/stripe-eps.js
vendored
2
resources/js/clients/payments/stripe-eps.js
vendored
@ -43,7 +43,7 @@ class ProcessEPSPay {
|
||||
let errors = document.getElementById('errors');
|
||||
|
||||
if (!document.getElementById('eps-name').value) {
|
||||
errors.textContent = "Enter name";
|
||||
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||
errors.hidden = false;
|
||||
console.log("name");
|
||||
return ;
|
||||
|
@ -29,7 +29,7 @@ class ProcessGiroPay {
|
||||
let errors = document.getElementById('errors');
|
||||
|
||||
if (!document.getElementById('giropay-mandate-acceptance').checked) {
|
||||
errors.textContent = "Accept Terms";
|
||||
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
|
||||
errors.hidden = false;
|
||||
console.log("Terms");
|
||||
return ;
|
||||
|
@ -43,7 +43,7 @@ class ProcessIDEALPay {
|
||||
let errors = document.getElementById('errors');
|
||||
|
||||
if (!document.getElementById('ideal-name').value) {
|
||||
errors.textContent = "Enter name";
|
||||
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||
errors.hidden = false;
|
||||
console.log("name");
|
||||
return ;
|
||||
|
@ -45,19 +45,19 @@ class ProcessPRZELEWY24 {
|
||||
|
||||
if (document.getElementById('p24-name').value === "") {
|
||||
document.getElementById('p24-name').focus();
|
||||
errors.textContent = "Name required.";
|
||||
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||
errors.hidden = false;
|
||||
return;
|
||||
}
|
||||
if (document.getElementById('p24-email-address').value === "") {
|
||||
document.getElementById('p24-email-address').focus();
|
||||
errors.textContent = "Email required.";
|
||||
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
|
||||
errors.hidden = false;
|
||||
return;
|
||||
}
|
||||
if (!document.getElementById('p24-mandate-acceptance').checked) {
|
||||
document.getElementById('p24-mandate-acceptance').focus();
|
||||
errors.textContent = "Accept Terms.";
|
||||
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
|
||||
errors.hidden = false;
|
||||
return;
|
||||
}
|
||||
|
@ -8,6 +8,9 @@
|
||||
<meta name="country" content="{{ $country }}">
|
||||
<meta name="customer" content="{{ $customer }}">
|
||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||
|
||||
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||
<meta name="translation-email-required" content="{{ ctrans('texts.provide_email') }}">
|
||||
@endsection
|
||||
|
||||
@section('gateway_content')
|
||||
|
@ -8,6 +8,8 @@
|
||||
<meta name="country" content="{{ $country }}">
|
||||
<meta name="customer" content="{{ $customer }}">
|
||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||
|
||||
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||
@endsection
|
||||
|
||||
@section('gateway_content')
|
||||
|
@ -7,6 +7,10 @@
|
||||
<meta name="country" content="{{ $country }}">
|
||||
<meta name="customer" content="{{ $customer }}">
|
||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||
|
||||
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||
<meta name="translation-email-required" content="{{ ctrans('texts.provide_email') }}">
|
||||
<meta name="translation-terms-required" content="{{ ctrans('texts.you_need_to_accept_the_terms_before_proceeding') }}">
|
||||
@endsection
|
||||
|
||||
@section('gateway_content')
|
||||
|
@ -8,6 +8,8 @@
|
||||
<meta name="country" content="{{ $country }}">
|
||||
<meta name="customer" content="{{ $customer }}">
|
||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||
|
||||
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||
@endsection
|
||||
|
||||
@section('gateway_content')
|
||||
|
@ -8,6 +8,8 @@
|
||||
<meta name="country" content="{{ $country }}">
|
||||
<meta name="customer" content="{{ $customer }}">
|
||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||
|
||||
<meta name="translation-terms-required" content="{{ ctrans('texts.you_need_to_accept_the_terms_before_proceeding') }}">
|
||||
@endsection
|
||||
|
||||
@section('gateway_content')
|
||||
|
@ -8,6 +8,8 @@
|
||||
<meta name="country" content="{{ $country }}">
|
||||
<meta name="customer" content="{{ $customer }}">
|
||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||
|
||||
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||
@endsection
|
||||
|
||||
@section('gateway_content')
|
||||
|
@ -8,6 +8,10 @@
|
||||
<meta name="return-url" content="{{ $return_url }}">
|
||||
<meta name="customer" content="{{ $customer }}">
|
||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||
|
||||
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||
<meta name="translation-email-required" content="{{ ctrans('texts.provide_email') }}">
|
||||
<meta name="translation-terms-required" content="{{ ctrans('texts.you_need_to_accept_the_terms_before_proceeding') }}">
|
||||
@endsection
|
||||
|
||||
@section('gateway_content')
|
||||
|
Loading…
Reference in New Issue
Block a user