Skip to content

Commit

Permalink
Add a 'Test Connection' button for all Tpay payment methods (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel authored Nov 26, 2024
2 parents ed88485 + 689fd2b commit 2c61ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/admin/payment_method/test_connection.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if resource.gatewayConfig.factoryName == 'tpay_pbl' %}
{% if resource.gatewayConfig.factoryName|slice(0, 5) == 'tpay_' or resource.gatewayConfig.factoryName == 'tpay' %}
<div class="ui compact segment" style="display: flex; align-items: center;">
<div class="ui button" id="test-connection-button" style="margin-right: 10px;">{{ 'commerce_weavers_sylius_tpay.admin.gateway_configuration.test_connection'|trans }}</div>
<div class="ui message" id="test-connection-message" style="flex-grow: 1; margin: 0;"></div>
Expand Down

0 comments on commit 2c61ae6

Please sign in to comment.