From a7db7faa890ee7cd1236b782e056b11896c8f913 Mon Sep 17 00:00:00 2001 From: Mario Lorenz Date: Fri, 10 Jan 2025 09:10:00 +0100 Subject: [PATCH] take over changes from smarty --- views/twig/admin/oscpaypalconfig.html.twig | 155 ++++++++++++++++----- 1 file changed, 119 insertions(+), 36 deletions(-) diff --git a/views/twig/admin/oscpaypalconfig.html.twig b/views/twig/admin/oscpaypalconfig.html.twig index 0347d20d6..8eb2b7b76 100644 --- a/views/twig/admin/oscpaypalconfig.html.twig +++ b/views/twig/admin/oscpaypalconfig.html.twig @@ -1,4 +1,4 @@ -{% include "headitem.html.twig" with {title: "paypal"|translate, box: "boxpaypal"} %} +{% include "headitem.html.twig" with {title: "paypal", box: "boxpaypal"} %} {% set isSandBox = config.isSandbox() %} {% set sSelfLink = oViewConf.getSslSelfLink()|replace({"&": "&"}) %} @@ -13,9 +13,9 @@

{{ translate({ ident: "paypal" }) }} {{ translate({ ident: "OSC_PAYPAL_CONFIG" }) }}

@@ -50,19 +50,17 @@

{{ translate({ ident: "HELP_OSC_PAYPAL_CREDENTIALS_PART1" }) }}

- - {% if not config.getLiveClientId() and not config.getLiveClientSecret() and not config.getLiveWebhookId() %} -

{{ translate({ ident: "HELP_OSC_PAYPAL_CREDENTIALS_PART2" }) }}

-

- {{ translate({ ident: "OSC_PAYPAL_LIVE_BUTTON_CREDENTIALS" }) }} - -

- {% endif %} +

{{ translate({ ident: "HELP_OSC_PAYPAL_CREDENTIALS_PART2" }) }}

+ +

+ {{ translate({ ident: "OSC_PAYPAL_LIVE_BUTTON_CREDENTIALS" }) }} + +

{{ translate({ ident: "OSC_PAYPAL_LIVE_CREDENTIALS" }) }}

@@ -99,15 +97,20 @@
- +
- {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_PUI", suffix:"COLON" }) }} {% if config.isPuiEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %}
- {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_ACDC", suffix:"COLON" }) }} {% if config.isAcdcEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }} {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_ACDC_FALLBACK" }) }}{% endif %} + {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_PUI", suffix: "COLON" }) }} {% if config.isLivePuiEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %} +
+ {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_ACDC", suffix: "COLON" }) }} {% if config.isLiveAcdcEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }} {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_ACDC_FALLBACK" }) }}{% endif %} +
+ {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_VAULTING", suffix: "COLON" }) }} {% if config.isLiveVaultingEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %} +
+ {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_GOOGLEPAY", suffix: "COLON" }) }} {% if config.isLiveGooglePayEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %} +
+ {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_APPLEPAY", suffix: "COLON" }) }} {% if config.isLiveApplePayEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %}
- {% if not config.getSandboxClientId() and not config.getSandboxClientSecret() and not config.getSandboxWebhookId() %} -

{{ translate({ ident: "HELP_OSC_PAYPAL_CREDENTIALS_PART2" }) }}

- {% endif %}

{{ translate({ ident: "OSC_PAYPAL_SANDBOX_CREDENTIALS" }) }}

@@ -154,10 +156,19 @@
- +
- {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_PUI", suffix:"COLON" }) }} {% if config.isLivePuiEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %}
- {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_ACDC", suffix:"COLON" }) }} {% if config.isLiveAcdcEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }} {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_ACDC_FALLBACK" }) }}{% endif %} + {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_PUI", suffix: "COLON" }) }} {% if config.isSandboxPuiEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %} +
+ {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_ACDC", suffix: "COLON" }) }} {% if config.isSandboxAcdcEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }} {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_ACDC_FALLBACK" }) }}{% endif %} +
+ {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_VAULTING", suffix: "COLON" }) }} {% if config.isSandboxVaultingEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %} +
+ {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_GOOGLEPAY", suffix: "COLON" }) }} {% if config.isSandboxGooglePayEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %} + +
+ {{ translate({ ident: "OSC_PAYPAL_SPECIAL_PAYMENTS_APPLEPAY", suffix: "COLON" }) }} {% if config.isSandboxApplePayEligibility() %}{{ translate({ ident: "GENERAL_YES" }) }}{% else %}{{ translate({ ident: "GENERAL_NO" }) }}{% endif %} +
@@ -345,7 +356,7 @@
{% if oView.showTransferLegacySettingsButton() %} - {{ translate({ ident: "OSC_PAYPAL_BANNER_TRANSFERLEGACYSETTINGS" }) }} + {{ translate({ ident: 'OSC_PAYPAL_BANNER_TRANSFERLEGACYSETTINGS' }) }} {% endif %}

{{ translate({ ident: "OSC_PAYPAL_BANNER_INFOTEXT" }) }}

@@ -434,8 +445,6 @@
{{ translate({ ident: "HELP_OSC_PAYPAL_BANNER_CARTPAGESELECTOR" }) }} - -
@@ -455,13 +464,13 @@ - - - @@ -492,24 +501,98 @@
+
+
+
+
+ +
+ {{ translate({ ident: "HELP_OSC_PAYPAL_VAULTING_ACTIVATE_VAULTING" }) }} +
+
+
+
+
+ +
+
+ +
+
- -
- - {{ translate({ ident: "OSC_PAYPAL_EXPRESS_SHIPPING_DESC" }) }} +
+ +
+ + {{ translate({ ident: "OSC_PAYPAL_EXPRESS_SHIPPING_DESC" }) }} +
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+ + {{ translate({ ident: "OSC_PAYPAL_CUSTOM_ID_CONTENTS_DESC" }) }} +
+ {# +
+
+ +
+
+
+
+
+
+
+
+ +
+ {{ translate({ ident: "HELP_OSC_OSC_PAYPAL_GOOGLEPAY_ADRESS_ACTIVATE" }) }} +
+
+
+
+
+
+
#}