{% extends "page/checkout/payment.html.twig" %} {% block select_payment %} {% if sPaymentID == "oscpaypal_express" %} {% include "@osc_paypal/frontend/select_payment.html.twig" %} {% elseif sPaymentID == "oscpaypal_sepa" or sPaymentID == "oscpaypal_cc_alternative" %} {% set config = oViewConf.getPayPalCheckoutConfig() %} {% if config.isActive() and not oViewConf.isPayPalExpressSessionActive() %}
{% include "@osc_paypal/frontend/select_payment.html.twig" %}
{% for value in paymentmethod.getDynValues() %}
{% endfor %} {% include "@osc_paypal/frontend/paymentbuttons.html.twig" with {buttonId: sPaymentID, buttonClass: "paypal-button-wrapper large"} %} {% block checkout_payment_longdesc %} {% if paymentmethod.oxpayments__oxlongdesc.value|striptags|trim %}
{{ paymentmethod.oxpayments__oxlongdesc.value }}
{% endif %} {% endblock %}
{% if paymentmethod.getPrice() %}
{% set oPaymentPrice = paymentmethod.getPrice() %} {% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %} {% apply spaceless %} {{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }} {% if oPaymentPrice.getVatValue() > 0 %} {{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }} {% endif %} {% endapply %} {% else %} {{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }} {% endif %}
{% endif %}
{% endif %} {% else %} {{ parent() }} {% endif %} {% endblock %} {% block change_payment %} {% if oView.getPaymentList().oscpaypal_express is defined and oViewConf.isPayPalExpressSessionActive() %} {% set config = oViewConf.getPayPalCheckoutConfig() %}

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

{{ translate({ ident: "OSC_PAYPAL_PAY_PROCESSED" }) }} {{ translate({ ident: "OSC_PAYPAL_PAY_UNLINK" }) }} {% set hide_payment %} let paymentElements = document.querySelectorAll('#payment > .card-header, #payment > .card-body'); for (let i = 0; i < paymentElements.length; i++) { paymentElements[i].style.display = "none"; } {% endset %} {{ script({ add: hide_payment.__toString(), priority: 10, dynamic: __oxid_include_dynamic }) }}
{% endif %} {{ parent() }} {% endblock %} {% block checkout_payment_main %} {% if attribute(oViewConf, 'showPayPalCheckoutBannerOnCheckoutPage') is defined and oViewConf.showPayPalCheckoutBannerOnCheckoutPage() %} {{ style({ include: oViewConf.getModuleUrl('osc_paypal', 'css/paypal_installment.css') }) }} {% set basketAmount = oxcmp_basket.getPrice() %} {% include "@osc_paypal/frontend/installment_banners.html.twig" with {amount: basketAmount.getPrice(), selector: oViewConf.getPayPalCheckoutBannerPaymentPageSelector(), addClass: "mt-5"} %} {% endif %} {{ parent() }} {% endblock %}