-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract Tpay Single Channel Pay-by-link as a separate payment method #238
Conversation
As we introduce a new payment method gateway, this seems as a BC break to me. A predefined Tpay channel ID configured for tpay_pbl will not work anymore. We need an upgrade file or something similar that will guide on how to use tpay_pbl_channel. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And we can remove support for defaultTpayChannelId
form templates/shop/payment/_payByLink.html.twig
. Or we can keep it with a comment, depending on how we want to handle a BC break.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added two small comments but these are super minor things.
'help' => 'commerce_weavers_sylius_tpay.admin.gateway_configuration.tpay_channel_id_help', | ||
'required' => false, | ||
'attr' => [ | ||
'placeholder' => $this->translator->trans('commerce_weavers_sylius_tpay.admin.gateway_configuration.tpay_display_all_channels', domain: 'messages'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This translation might be removed from the translation file.
@@ -1,5 +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'%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-{% if payment is not null and payment.method.gatewayConfig.gatewayName == 'tpay_pbl'%}
+{% if payment is not null and payment.method.gatewayConfig.gatewayName == 'tpay_pbl' %}
Closes #221