From 689fd2b3edf057ebf203e746247a476e53156e8d Mon Sep 17 00:00:00 2001 From: Kevin Kaniaburka Date: Tue, 26 Nov 2024 21:13:18 +0100 Subject: [PATCH] Add test connection button for all Tpay payment methods --- templates/admin/payment_method/test_connection.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/admin/payment_method/test_connection.html.twig b/templates/admin/payment_method/test_connection.html.twig index 938ac992..2c40d92f 100644 --- a/templates/admin/payment_method/test_connection.html.twig +++ b/templates/admin/payment_method/test_connection.html.twig @@ -1,4 +1,4 @@ -{% if resource.gatewayConfig.factoryName == 'tpay_pbl' %} +{% if resource.gatewayConfig.factoryName|slice(0, 5) == 'tpay_' or resource.gatewayConfig.factoryName == 'tpay' %}
{{ 'commerce_weavers_sylius_tpay.admin.gateway_configuration.test_connection'|trans }}