- 🇮🇱Israel jsacksick
Now that the 3.0.0 release is approaching, I'm having second thoughts about this change. The "Add payment method" label doesn't make sense in the case there is no payment gateway implementing the
SupportsCreatingPaymentMethodsInterface
. - 🇳🇴Norway zaporylie
Re #21 I think it's
SupportsStoredPaymentMethodsInterface
. that is a problem notSupportsCreatingPaymentMethodsInterface
Offsite gateways may implement the former without implementing the latter. Onsite gateways always implement
SupportsCreatingPaymentMethodsInterface
therefore it also implementSupportsStoredPaymentMethodsInterface
- Status changed to Needs work
4 months ago 11:50am 28 August 2024 - 🇮🇱Israel jsacksick
I reverted this today... So marking this as needs work considering 🐛 Payment Information fieldset label is misleading if mix of gateways supporting and not supporting stored payment methods is available Active and other inconsistencies found.
After discussing this further internally, I now believe we should attempt to provide a better alternate UX via an alternate pane or something... Or a behavior you can toggle within the existing pane via settings. This would be a less disruptive change and would allow people to optin/optout of this change.... - 🇳🇴Norway zaporylie
Rather than opt-in or -out as a part of pane plugin definition I think it would be beneficial for the codebase upgrading efforts (strong typing, etc) if we could provide an alternative plugin class, compatible in behavior (ie. pane form submission result) with the current one. The new plugin class could be swapped via hook_commerce_checkout_pane_info_alter. In that scenario, the site-wide checkout.settings config could control which class to use for the Payment Information checkout pane plugin. The old class would throw deprecation error as mentioned in https://www.drupal.org/about/core/policies/core-change-policies/how-to-d... → . The old class would be the default for existing sites, and the class with a modernized UI used by default on new Commerce installations. During Commerce 3.x lifecycle one can change the plugin class back and forth and old, legacy class as well as the option to change it will be removed in the 4.x