From c18c8b8b1388b425f60baed9c0faef323f26a0a1 Mon Sep 17 00:00:00 2001
From: mdoellerer-fc
Date: Tue, 15 Dec 2020 17:40:26 +0100
Subject: [PATCH 1/4] OX6-88 Transfer all changes, add changes in Wave theme.
---
application/translations/de/fcPayOne_lang.php | 3 ++
application/translations/en/fcPayOne_lang.php | 3 ++
.../azure/fcpo_payment_creditcard_ajax.tpl | 21 +++++++++----
.../azure/fcpo_payment_creditcard_hosted.tpl | 23 +++++++++-----
.../tpl/flow/fcpo_payment_creditcard_ajax.tpl | 20 ++++++++++---
.../flow/fcpo_payment_creditcard_hosted.tpl | 25 ++++++++++------
.../tpl/wave/fcpo_payment_creditcard_ajax.tpl | 18 +++++++++--
.../wave/fcpo_payment_creditcard_hosted.tpl | 21 ++++++++-----
lib/fcporequest.php | 1 +
out/src/js/fcPayOne.js | 30 +++++++++++++++++++
10 files changed, 130 insertions(+), 35 deletions(-)
diff --git a/application/translations/de/fcPayOne_lang.php b/application/translations/de/fcPayOne_lang.php
index d417d550..dee5856e 100755
--- a/application/translations/de/fcPayOne_lang.php
+++ b/application/translations/de/fcPayOne_lang.php
@@ -34,6 +34,9 @@
'FCPO_CC_NUMBER_INVALID' => 'Bitte geben Sie eine korrekte Kreditkarten-Nummer ein.',
'FCPO_CC_DATE_INVALID' => 'Bitte geben Sie ein korrektes Gültigkeits-Datum an.',
'FCPO_CC_CVC2_INVALID' => 'Bitte geben Sie eine korrekte Prüfziffer an.',
+ 'FCPO_CC_CARDHOLDER' => "Karteninhaber",
+ 'FCPO_CC_CARDHOLDER_HELPTEXT' => "Karteninhaber wie aufgedruckt",
+ 'FCPO_CC_CARDHOLDER_INVALID' => "Es sind nur A-Z, ÄÖÜ,ß und - erlaubt",
'fcpo_so_ktonr' => 'Kontonummer',
'fcpo_so_blz' => 'BLZ',
'FCPO_MANIPULATION' => 'Verdacht auf Manipulation',
diff --git a/application/translations/en/fcPayOne_lang.php b/application/translations/en/fcPayOne_lang.php
index 1d5c708e..0775f3fd 100755
--- a/application/translations/en/fcPayOne_lang.php
+++ b/application/translations/en/fcPayOne_lang.php
@@ -34,6 +34,9 @@
'FCPO_CC_NUMBER_INVALID' => 'Please enter a valid credit card number.',
'FCPO_CC_DATE_INVALID' => 'Please enter a valid date of expiry.',
'FCPO_CC_CVC2_INVALID' => 'Please enter a valid check digit.',
+'FCPO_CC_CARDHOLDER' => "Cardholder",
+'FCPO_CC_CARDHOLDER_HELPTEXT' => "Cardholder as printed on card",
+'FCPO_CC_CARDHOLDER_INVALID' => "Only A-Z, ÄÖÜ,ß and - are valid",
'fcpo_so_ktonr' => 'Bank account number',
'fcpo_so_blz' => 'Bank identification number',
'FCPO_BANK_GER_OLD' => 'or pay by using your usual bank account number and bank code
(only supported for german accounts).',
diff --git a/application/views/frontend/tpl/azure/fcpo_payment_creditcard_ajax.tpl b/application/views/frontend/tpl/azure/fcpo_payment_creditcard_ajax.tpl
index 0e9b02a2..734facd0 100644
--- a/application/views/frontend/tpl/azure/fcpo_payment_creditcard_ajax.tpl
+++ b/application/views/frontend/tpl/azure/fcpo_payment_creditcard_ajax.tpl
@@ -35,11 +35,22 @@
-
-
-
-
- [{oxmultilang ident="FCPO_IF_DEFERENT_FROM_BILLING_ADDRESS"}]
+
+
+
+ [{oxmultilang ident="FCPO_CC_CARDHOLDER_HELPTEXT"}]
+
+
+
+ - [{oxmultilang ident="FCPO_CC_CARDHOLDER_INVALID"}]
+
+
+
diff --git a/application/views/frontend/tpl/azure/fcpo_payment_creditcard_hosted.tpl b/application/views/frontend/tpl/azure/fcpo_payment_creditcard_hosted.tpl
index 27f97eea..e1f28009 100644
--- a/application/views/frontend/tpl/azure/fcpo_payment_creditcard_hosted.tpl
+++ b/application/views/frontend/tpl/azure/fcpo_payment_creditcard_hosted.tpl
@@ -41,13 +41,22 @@
-
-
-
-
-
-
-
+
+
+
+ [{oxmultilang ident="FCPO_CC_CARDHOLDER_HELPTEXT"}]
+
+
+
+ - [{oxmultilang ident="FCPO_CC_CARDHOLDER_INVALID"}]
+
+
+
diff --git a/application/views/frontend/tpl/flow/fcpo_payment_creditcard_ajax.tpl b/application/views/frontend/tpl/flow/fcpo_payment_creditcard_ajax.tpl
index 64c9d6a7..43c5c1ab 100644
--- a/application/views/frontend/tpl/flow/fcpo_payment_creditcard_ajax.tpl
+++ b/application/views/frontend/tpl/flow/fcpo_payment_creditcard_ajax.tpl
@@ -46,11 +46,23 @@
-
-
-