From 75f0f53d65e72cb3c01d8a97681bcf2f5af87798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Por=C4=99bski?= Date: Mon, 11 Dec 2023 11:23:25 +0100 Subject: [PATCH 1/2] let PaymentMethod register custom partial view --- app/views/spree/admin/payment_methods/_form.html.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/views/spree/admin/payment_methods/_form.html.erb b/app/views/spree/admin/payment_methods/_form.html.erb index df01f113f6..e6cc4d709d 100644 --- a/app/views/spree/admin/payment_methods/_form.html.erb +++ b/app/views/spree/admin/payment_methods/_form.html.erb @@ -58,6 +58,18 @@ <% unless @object.new_record? %>
+ + <% if @object.respond_to?(:payment_configuration_guide) %> +
+
+
<%= Spree.t(:payment_method_configuration) %>
+
+
+ <%= render "spree/admin/payment_methods/configuration_guides/#{@object.payment_configuration_guide}" %> +
+
+ <% end %> +
<%= Spree.t(:payment_provider_settings) %>
From b2249b55e2a7228986d586fd348a7b7f3d82a5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Por=C4=99bski?= Date: Wed, 10 Jan 2024 09:27:00 +0100 Subject: [PATCH 2/2] added payment_method_configuration translation key to config/locales/en.yml --- config/locales/en.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index 435aeeda45..fdbca3398f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -339,3 +339,6 @@ en: taxes_section: message_with_taxes: You're tax calculation is setup! message_without_taxes: You can use tax services such as TaxJar or setup tax calculation manually + payment_methods: + edit: + payment_method_configuration: "Payment Method Configuration"