mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:04:30 -04: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 === "") {
|
if (document.getElementById('acss-name').value === "") {
|
||||||
document.getElementById('acss-name').focus();
|
document.getElementById('acss-name').focus();
|
||||||
errors.textContent = "Name required.";
|
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.getElementById('acss-email-address').value === "") {
|
if (document.getElementById('acss-email-address').value === "") {
|
||||||
document.getElementById('acss-email-address').focus();
|
document.getElementById('acss-email-address').focus();
|
||||||
errors.textContent = "Email required.";
|
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class ProcessBANCONTACTPay {
|
|||||||
let errors = document.getElementById('errors');
|
let errors = document.getElementById('errors');
|
||||||
|
|
||||||
if (!document.getElementById('bancontact-name').value) {
|
if (!document.getElementById('bancontact-name').value) {
|
||||||
errors.textContent = "Enter name";
|
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
console.log("name");
|
console.log("name");
|
||||||
return ;
|
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 === "") {
|
if (document.getElementById('becs-name').value === "") {
|
||||||
document.getElementById('becs-name').focus();
|
document.getElementById('becs-name').focus();
|
||||||
errors.textContent = "Name required.";
|
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.getElementById('becs-email-address').value === "") {
|
if (document.getElementById('becs-email-address').value === "") {
|
||||||
document.getElementById('becs-email-address').focus();
|
document.getElementById('becs-email-address').focus();
|
||||||
errors.textContent = "Email required.";
|
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ class ProcessBECS {
|
|||||||
|
|
||||||
if (!document.getElementById('becs-mandate-acceptance').checked) {
|
if (!document.getElementById('becs-mandate-acceptance').checked) {
|
||||||
document.getElementById('becs-mandate-acceptance').focus();
|
document.getElementById('becs-mandate-acceptance').focus();
|
||||||
errors.textContent = "Accept Terms";
|
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
console.log("Terms");
|
console.log("Terms");
|
||||||
return ;
|
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');
|
let errors = document.getElementById('errors');
|
||||||
|
|
||||||
if (!document.getElementById('eps-name').value) {
|
if (!document.getElementById('eps-name').value) {
|
||||||
errors.textContent = "Enter name";
|
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
console.log("name");
|
console.log("name");
|
||||||
return ;
|
return ;
|
||||||
|
@ -29,7 +29,7 @@ class ProcessGiroPay {
|
|||||||
let errors = document.getElementById('errors');
|
let errors = document.getElementById('errors');
|
||||||
|
|
||||||
if (!document.getElementById('giropay-mandate-acceptance').checked) {
|
if (!document.getElementById('giropay-mandate-acceptance').checked) {
|
||||||
errors.textContent = "Accept Terms";
|
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
console.log("Terms");
|
console.log("Terms");
|
||||||
return ;
|
return ;
|
||||||
|
@ -43,7 +43,7 @@ class ProcessIDEALPay {
|
|||||||
let errors = document.getElementById('errors');
|
let errors = document.getElementById('errors');
|
||||||
|
|
||||||
if (!document.getElementById('ideal-name').value) {
|
if (!document.getElementById('ideal-name').value) {
|
||||||
errors.textContent = "Enter name";
|
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
console.log("name");
|
console.log("name");
|
||||||
return ;
|
return ;
|
||||||
|
@ -45,19 +45,19 @@ class ProcessPRZELEWY24 {
|
|||||||
|
|
||||||
if (document.getElementById('p24-name').value === "") {
|
if (document.getElementById('p24-name').value === "") {
|
||||||
document.getElementById('p24-name').focus();
|
document.getElementById('p24-name').focus();
|
||||||
errors.textContent = "Name required.";
|
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (document.getElementById('p24-email-address').value === "") {
|
if (document.getElementById('p24-email-address').value === "") {
|
||||||
document.getElementById('p24-email-address').focus();
|
document.getElementById('p24-email-address').focus();
|
||||||
errors.textContent = "Email required.";
|
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!document.getElementById('p24-mandate-acceptance').checked) {
|
if (!document.getElementById('p24-mandate-acceptance').checked) {
|
||||||
document.getElementById('p24-mandate-acceptance').focus();
|
document.getElementById('p24-mandate-acceptance').focus();
|
||||||
errors.textContent = "Accept Terms.";
|
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
|
||||||
errors.hidden = false;
|
errors.hidden = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
<meta name="country" content="{{ $country }}">
|
<meta name="country" content="{{ $country }}">
|
||||||
<meta name="customer" content="{{ $customer }}">
|
<meta name="customer" content="{{ $customer }}">
|
||||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
<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
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
<meta name="country" content="{{ $country }}">
|
<meta name="country" content="{{ $country }}">
|
||||||
<meta name="customer" content="{{ $customer }}">
|
<meta name="customer" content="{{ $customer }}">
|
||||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||||
|
|
||||||
|
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
<meta name="country" content="{{ $country }}">
|
<meta name="country" content="{{ $country }}">
|
||||||
<meta name="customer" content="{{ $customer }}">
|
<meta name="customer" content="{{ $customer }}">
|
||||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
<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
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
<meta name="country" content="{{ $country }}">
|
<meta name="country" content="{{ $country }}">
|
||||||
<meta name="customer" content="{{ $customer }}">
|
<meta name="customer" content="{{ $customer }}">
|
||||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||||
|
|
||||||
|
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
<meta name="country" content="{{ $country }}">
|
<meta name="country" content="{{ $country }}">
|
||||||
<meta name="customer" content="{{ $customer }}">
|
<meta name="customer" content="{{ $customer }}">
|
||||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
<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
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
<meta name="country" content="{{ $country }}">
|
<meta name="country" content="{{ $country }}">
|
||||||
<meta name="customer" content="{{ $customer }}">
|
<meta name="customer" content="{{ $customer }}">
|
||||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
||||||
|
|
||||||
|
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
<meta name="return-url" content="{{ $return_url }}">
|
<meta name="return-url" content="{{ $return_url }}">
|
||||||
<meta name="customer" content="{{ $customer }}">
|
<meta name="customer" content="{{ $customer }}">
|
||||||
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
|
<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
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user