Skip to content
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

Merged
merged 6 commits into from
Jan 26, 2025

Conversation

matik955
Copy link
Contributor

Closes #221

@coldic3
Copy link
Member

coldic3 commented Jan 20, 2025

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.

Copy link
Member

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.

@lchrusciel lchrusciel merged commit 6791b36 into main Jan 26, 2025
4 checks passed
@lchrusciel lchrusciel deleted the 221-dx-810-fix-pbl-method branch January 26, 2025 10:39
Copy link
Member

@coldic3 coldic3 left a 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'),
Copy link
Member

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'%}
Copy link
Member

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' %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DX-810 Fix PBL method
3 participants