Skip to content

Commit

Permalink
[PBL] Fix gateway name const (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel authored Nov 29, 2024
2 parents aa4f997 + 7b62258 commit a4aff97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Tpay/GatewayName.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GatewayName

public const GOOGLE_PAY = 'tpay_google_pay';

public const PAY_BY_LINK = 'tpay_pay_by_link';
public const PAY_BY_LINK = 'tpay_pbl';

public const REDIRECT = 'tpay_redirect';

Expand Down
3 changes: 1 addition & 2 deletions templates/shop/cart/complete/_payByLink.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% set payment = order.lastCartPayment() %}

{% if payment is not null and payment.method.gatewayConfig.gatewayName == 'tpay_pbl'
%}
{% if payment is not null and payment.method.gatewayConfig.gatewayName == 'tpay_pbl' %}
{% include '@CommerceWeaversSyliusTpayPlugin/shop/payment/_payByLink.html.twig' %}
{% endif %}

0 comments on commit a4aff97

Please sign in to comment.