You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix the listing of payment methods on the classic checkout with Optimized Checkout (#4266)
* Fix the listing of payment methods on the classic checkout with Smart Checkout
* Adding specific unit test
* Fix bad merge
* Fix tests
* Specific unit tests
* Remove group annotation
* Changelog and readme entries
---------
Co-authored-by: Malith Senaweera <[email protected]>
Copy file name to clipboardExpand all lines: changelog.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
*** Changelog ***
2
2
3
3
= 9.5.0 - xxxx-xx-xx =
4
+
* Fix - Fixes the listing of payment methods on the classic checkout when the Optimized Checkout is enabled.
4
5
* Fix - Fixes the availability of WeChat Pay when the Optimized Checkout is enabled on the block checkout. Removes it from the classic/shortcode checkout to avoid issues.
5
6
* Dev - Renames all references to "Smart Checkout" and "Single Payment Element" (and "SPE") to "Optimized Checkout" (and "OC"), following the feature rebranding.
6
7
* Tweak - Updates the "Smart Checkout" setting name to "Optimized Checkout", and the description accordingly.
if ( WC_Stripe_UPE_Payment_Method_ACH::class === $payment_method_class && ! WC_Stripe_Feature_Flags::is_ach_lpm_enabled() ) {
187
+
continue;
188
+
}
200
189
201
-
// Consider Bacs only if the feature is enabled.
202
-
if ( WC_Stripe_UPE_Payment_Method_Bacs_Debit::class === $payment_method_class && ! WC_Stripe_Feature_Flags::is_bacs_lpm_enabled() ) {
203
-
continue;
204
-
}
190
+
// Show ACSS only if feature is enabled.
191
+
if ( WC_Stripe_UPE_Payment_Method_ACSS::class === $payment_method_class && ! WC_Stripe_Feature_Flags::is_acss_lpm_enabled() ) {
192
+
continue;
193
+
}
205
194
206
-
// Show BECS Debit only if feature is enabled.
207
-
if ( WC_Stripe_UPE_Payment_Method_Becs_Debit::class === $payment_method_class && ! WC_Stripe_Feature_Flags::is_becs_debit_lpm_enabled() ) {
208
-
continue;
209
-
}
195
+
// Consider Bacs only if the feature is enabled.
196
+
if ( WC_Stripe_UPE_Payment_Method_Bacs_Debit::class === $payment_method_class && ! WC_Stripe_Feature_Flags::is_bacs_lpm_enabled() ) {
197
+
continue;
198
+
}
210
199
211
-
// Show BLIK only if feature is enabled.
212
-
if ( WC_Stripe_UPE_Payment_Method_BLIK::class === $payment_method_class && ! WC_Stripe_Feature_Flags::is_blik_lpm_enabled() ) {
213
-
continue;
214
-
}
200
+
// Show BECS Debit only if feature is enabled.
201
+
if ( WC_Stripe_UPE_Payment_Method_Becs_Debit::class === $payment_method_class && ! WC_Stripe_Feature_Flags::is_becs_debit_lpm_enabled() ) {
202
+
continue;
203
+
}
215
204
216
-
/** Show Sofort if it's already enabled. Hide from the new merchants and keep it for the old ones who are already using this gateway, until we remove it completely.
217
-
* Stripe is deprecating Sofort https://support.stripe.com/questions/sofort-is-being-deprecated-as-a-standalone-payment-method.
218
-
*/
219
-
if ( WC_Stripe_UPE_Payment_Method_Sofort::class === $payment_method_class && ! $is_sofort_enabled ) {
220
-
continue;
221
-
}
205
+
// Show BLIK only if feature is enabled.
206
+
if ( WC_Stripe_UPE_Payment_Method_BLIK::class === $payment_method_class && ! WC_Stripe_Feature_Flags::is_blik_lpm_enabled() ) {
207
+
continue;
208
+
}
222
209
223
-
// Show giropay only on the orders page to allow refunds. It was deprecated.
/** Show Sofort if it's already enabled. Hide from the new merchants and keep it for the old ones who are already using this gateway, until we remove it completely.
211
+
* Stripe is deprecating Sofort https://support.stripe.com/questions/sofort-is-being-deprecated-as-a-standalone-payment-method.
212
+
*/
213
+
if ( WC_Stripe_UPE_Payment_Method_Sofort::class === $payment_method_class && ! $is_sofort_enabled ) {
Copy file name to clipboardExpand all lines: readme.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
111
111
== Changelog ==
112
112
113
113
= 9.5.0 - xxxx-xx-xx =
114
+
* Fix - Fixes the listing of payment methods on the classic checkout when the Optimized Checkout is enabled.
114
115
* Fix - Fixes the availability of WeChat Pay when the Optimized Checkout is enabled on the block checkout. Removes it from the classic/shortcode checkout to avoid issues.
115
116
* Dev - Renames all references to "Smart Checkout" and "Single Payment Element" (and "SPE") to "Optimized Checkout" (and "OC"), following the feature rebranding.
116
117
* Tweak - Updates the "Smart Checkout" setting name to "Optimized Checkout", and the description accordingly.
0 commit comments