From a353ae5762e4fbcb5c82cb8805577d629c7a355f Mon Sep 17 00:00:00 2001 From: kl Date: Wed, 7 Feb 2024 12:49:33 +0100 Subject: [PATCH 1/2] Added templates for vmp-epayments --- templates/form/vmp_epayment.liquid | 12 ++++++++++++ templates/payment_methods_list.liquid | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 templates/form/vmp_epayment.liquid diff --git a/templates/form/vmp_epayment.liquid b/templates/form/vmp_epayment.liquid new file mode 100644 index 0000000..5b267b5 --- /dev/null +++ b/templates/form/vmp_epayment.liquid @@ -0,0 +1,12 @@ +
+
+
+ vmp-epayments +
+
+

{% t When you click the button below, the Vipps-MobilePay window will open %}

+

{% t When finished, you will be redirected back to your receipt. %}

+ {% t Proceed to payment %} +
+
+
diff --git a/templates/payment_methods_list.liquid b/templates/payment_methods_list.liquid index a87d988..5470247 100644 --- a/templates/payment_methods_list.liquid +++ b/templates/payment_methods_list.liquid @@ -2,6 +2,12 @@ {% if method.name == "apple-pay" %}
+ {% elsif method.name == "vmp-epayment" %} + {% if model.currency == "NOK" %} + VMP Vipps + {% else %} + VMP MobilePay + {% endif %} {% else %} {{ method.nice_name }} {% endif %} From 7e51298b9d426a9bd8564373fc93ec5ee316d05e Mon Sep 17 00:00:00 2001 From: kl Date: Wed, 7 Feb 2024 14:24:27 +0100 Subject: [PATCH 2/2] Fixed liquid error in vmp-epayment template --- templates/form/vmp_epayment.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/form/vmp_epayment.liquid b/templates/form/vmp_epayment.liquid index 5b267b5..0dd5e9a 100644 --- a/templates/form/vmp_epayment.liquid +++ b/templates/form/vmp_epayment.liquid @@ -1,7 +1,7 @@
- vmp-epayments + vmp-epayment

{% t When you click the button below, the Vipps-MobilePay window will open %}