From dcc4df5355e00a0596aa585f7f05689808233a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Gust?= Date: Fri, 1 Nov 2024 19:15:41 +0100 Subject: [PATCH] PSPAYPAL-815 add google pay template --- .../default/page/checkout/order.html.twig | 12 + .../page/checkout/googlepay.html.twig | 284 ++++++++++++++++++ 2 files changed, 296 insertions(+) create mode 100644 views/twig/frontend/page/checkout/googlepay.html.twig diff --git a/views/twig/extensions/themes/default/page/checkout/order.html.twig b/views/twig/extensions/themes/default/page/checkout/order.html.twig index f4e683e41..e98b9c875 100644 --- a/views/twig/extensions/themes/default/page/checkout/order.html.twig +++ b/views/twig/extensions/themes/default/page/checkout/order.html.twig @@ -54,3 +54,15 @@ {{ parent() }} {% endif %} {% endblock %} + +{% block checkout_order_next_step_side %} + {{ oxcmp_basket.getPaymentId() }} + {% if "oscpaypal_googlepay" == oxcmp_basket.getPaymentId() %} + {% include "@osc_paypal/frontend/page/checkout/googlepay.html.twig" %} + {% else %} + + {% endif %} +{% endblock %} diff --git a/views/twig/frontend/page/checkout/googlepay.html.twig b/views/twig/frontend/page/checkout/googlepay.html.twig new file mode 100644 index 000000000..5f2dabcef --- /dev/null +++ b/views/twig/frontend/page/checkout/googlepay.html.twig @@ -0,0 +1,284 @@ +{% block oscpaypal_googlepay %} +{% hasrights { ident: "PAYWITHGOOGLEPAY" } %} +{% set sToken = oViewConf.getSessionChallengeToken() %} +{% set sSelfLink = oViewConf.getSslSelfLink() %} +{% set oPPconfig = oViewConf.getPayPalCheckoutConfig() %} +{% set oConfig = oViewConf.getConfig() %} +{% set bGooglePayDelivery = oConfig.getConfigParam('oscPayPalUseGooglePayAddress') %} + +{% capture name = "detailsGooglePayScript" %} +{% if false %}