diff --git a/src/Resources/snippet/de_DE/unzer-payment.de-DE.json b/src/Resources/snippet/de_DE/unzer-payment.de-DE.json
index 8d4549a1..2e104e8c 100644
--- a/src/Resources/snippet/de_DE/unzer-payment.de-DE.json
+++ b/src/Resources/snippet/de_DE/unzer-payment.de-DE.json
@@ -87,6 +87,8 @@
},
"finishPaymentFailed": "Zahlung ändern",
"birthdayInvalid": "Sie müssen mindestens 18 Jahre alt sein.",
+ "errorNotReady": "Die Zahlungsart ist noch nicht vollständig geladen. Bitte warten Sie einen Moment.",
+ "generalError": "Es gab einen Fehler. Bitte versuchen Sie es erneut.",
"companyType": {
"label": "Art des Unternehmens",
"placeholder": "Bitte auswählen",
diff --git a/src/Resources/snippet/en_GB/unzer-payment.en-GB.json b/src/Resources/snippet/en_GB/unzer-payment.en-GB.json
index db9f79b1..ad398de8 100644
--- a/src/Resources/snippet/en_GB/unzer-payment.en-GB.json
+++ b/src/Resources/snippet/en_GB/unzer-payment.en-GB.json
@@ -87,6 +87,8 @@
},
"finishPaymentFailed": "Change payment method",
"birthdayInvalid": "You need to be at least 18 years old.",
+ "errorNotReady": "Payment method is not loaded yet. Please wait.",
+ "generalError": "Error! Please try again.",
"companyType": {
"label": "Type of company",
"placeholder": "Please select",
diff --git a/src/Resources/views/storefront/component/unzer/base/unzer-library.html.twig b/src/Resources/views/storefront/component/unzer/base/unzer-library.html.twig
index e48c4027..faadc8d5 100644
--- a/src/Resources/views/storefront/component/unzer/base/unzer-library.html.twig
+++ b/src/Resources/views/storefront/component/unzer/base/unzer-library.html.twig
@@ -1,3 +1,3 @@
{% block unzer_paymentbase_js_library %}
-
+
{% endblock %}
diff --git a/src/Resources/views/storefront/layout/meta.html.twig b/src/Resources/views/storefront/layout/meta.html.twig
new file mode 100644
index 00000000..a68d3899
--- /dev/null
+++ b/src/Resources/views/storefront/layout/meta.html.twig
@@ -0,0 +1,8 @@
+{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
+
+{% block layout_head_stylesheet %}
+ {{ parent() }}
+ {% if app.request.attributes.get('_route') == 'frontend.checkout.confirm.page' %}
+
+ {% endif %}
+{% endblock %}
\ No newline at end of file
diff --git a/src/Resources/views/storefront/page/checkout/confirm/index.html.twig b/src/Resources/views/storefront/page/checkout/confirm/index.html.twig
index 29f3880b..54f9f1fb 100755
--- a/src/Resources/views/storefront/page/checkout/confirm/index.html.twig
+++ b/src/Resources/views/storefront/page/checkout/confirm/index.html.twig
@@ -32,7 +32,9 @@
"publicKey": "{{ page.extensions.unzerPaymentData.publicKey }}",
"shopLocale": "{{ page.extensions.unzerPaymentData.locale }}",
"unzerCustomer": {% if page.extensions.unzerPaymentData.getUnzerCustomer() is not empty %}{{ page.extensions.unzerPaymentData.getUnzerCustomer().expose()|json_encode }}{% else %}null{% endif %},
- "errorShouldNotBeEmpty": "{{ "error.VIOLATION::IS_BLANK_ERROR" | trans }}"
+ "errorShouldNotBeEmpty": "{{ "error.VIOLATION::IS_BLANK_ERROR" | trans }}",
+ "errorNotReady": "{{ "UnzerPayment.errorNotReady" | trans }}",
+ "generalError": "{{ "UnzerPayment.generalError" | trans }}"
}'>
{% block unzer_payment_checkout_confirm_frame_card_body %}
diff --git a/src/Resources/views/storefront/page/checkout/summary.html.twig b/src/Resources/views/storefront/page/checkout/summary.html.twig
deleted file mode 100644
index 031d8c0b..00000000
--- a/src/Resources/views/storefront/page/checkout/summary.html.twig
+++ /dev/null
@@ -1,53 +0,0 @@
-{% sw_extends '@Storefront/storefront/page/checkout/summary.html.twig' %}
-
-{# Extension for the cart summary should only apply to InstallmentSecured since it modifies the prices accordingly to the selected rate! #}
-{% block page_checkout_summary_total %}
- {% if context.paymentMethod.id is constant("UnzerPayment6\\Installer\\PaymentInstaller::PAYMENT_ID_INSTALLMENT_SECURED") %}
- {% block page_checkout_summary_unzer_paymentinstallment_interest_label %}
-
- {{ "UnzerPayment.frame.installmentSecured.totalInterest"|trans|sw_sanitize }}
-
- {% endblock %}
-
- {% block page_checkout_summary_unzer_paymentinstallment_interest_value %}
-
- {% if page.extensions.unzerFinishPage and (page.extensions.unzerFinishPage.installmentInformation|length > 0) %}
- {{ page.extensions.unzerFinishPage.installmentInformation[0].totalInterestAmount|currency }}{{ "general.star"|trans|sw_sanitize }}
- {% else %}
- {{ 0|currency }}{{ "general.star"|trans|sw_sanitize }}
- {% endif %}
-
- {% endblock %}
-
- {% block page_checkout_summary_total_label %}
-
- {{ "checkout.summaryTotalPrice"|trans|sw_sanitize }}
-
- {% endblock %}
-
- {% block page_checkout_summary_total_value %}
-
- {{ summary.price.totalPrice|currency }}{% if page.cart.price.taxStatus == "gross" %}{{ "general.star"|trans|sw_sanitize|trim }}{% endif %}
-
- {% endblock %}
-
- {% block page_checkout_summary_unzer_paymentinstallment_total_label %}
-
- {{ "UnzerPayment.frame.installmentSecured.totalAmount"|trans }}
-
- {% endblock %}
-
- {% block page_checkout_summary_unzer_paymentinstallment_total_value %}
-
- {% if page.extensions.unzerFinishPage and (page.extensions.unzerFinishPage.installmentInformation|length > 0) %}
- {{ page.extensions.unzerFinishPage.installmentInformation[0].totalAmount|currency }}{{ "general.star"|trans|sw_sanitize }}
- {% else %}
- {{ summary.price.totalPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
- {% endif %}
-
- {% endblock %}
- {% else %}
- {{ parent() }}
- {% endif %}
-{% endblock %}
diff --git a/src/Resources/views/storefront/page/checkout/summary/summary-total.html.twig b/src/Resources/views/storefront/page/checkout/summary/summary-total.html.twig
deleted file mode 100644
index 6550ba51..00000000
--- a/src/Resources/views/storefront/page/checkout/summary/summary-total.html.twig
+++ /dev/null
@@ -1,53 +0,0 @@
-{% sw_extends '@Storefront/storefront/page/checkout/summary/summary-total.html.twig' %}
-
-{# Extension for the cart summary should only apply to InstallmentSecured since it modifies the prices accordingly to the selected rate! #}
-{% block page_checkout_summary_total %}
- {% if context.paymentMethod.id is constant("UnzerPayment6\\Installer\\PaymentInstaller::PAYMENT_ID_INSTALLMENT_SECURED") %}
- {% block page_checkout_summary_unzer_paymentinstallment_interest_label %}
-
- {{ "UnzerPayment.frame.installmentSecured.totalInterest"|trans|sw_sanitize }}
-
- {% endblock %}
-
- {% block page_checkout_summary_unzer_paymentinstallment_interest_value %}
-
- {% if page.extensions.unzerFinishPage and (page.extensions.unzerFinishPage.installmentInformation|length > 0) %}
- {{ page.extensions.unzerFinishPage.installmentInformation[0].totalInterestAmount|currency }}{{ "general.star"|trans|sw_sanitize }}
- {% else %}
- {{ 0|currency }}{{ "general.star"|trans|sw_sanitize }}
- {% endif %}
-
- {% endblock %}
-
- {% block page_checkout_summary_total_label %}
-
- {{ "checkout.summaryTotalPrice"|trans|sw_sanitize }}
-
- {% endblock %}
-
- {% block page_checkout_summary_total_value %}
-
- {{ summary.price.totalPrice|currency }}{% if page.cart.price.taxStatus == "gross" %}{{ "general.star"|trans|sw_sanitize|trim }}{% endif %}
-
- {% endblock %}
-
- {% block page_checkout_summary_unzer_paymentinstallment_total_label %}
-
- {{ "UnzerPayment.frame.installmentSecured.totalAmount"|trans }}
-
- {% endblock %}
-
- {% block page_checkout_summary_unzer_paymentinstallment_total_value %}
-
- {% if page.extensions.unzerFinishPage and (page.extensions.unzerFinishPage.installmentInformation|length > 0) %}
- {{ page.extensions.unzerFinishPage.installmentInformation[0].totalAmount|currency }}{{ "general.star"|trans|sw_sanitize }}
- {% else %}
- {{ summary.price.totalPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
- {% endif %}
-
- {% endblock %}
- {% else %}
- {{ parent() }}
- {% endif %}
-{% endblock %}