Skip to content

Commit 1533f16

Browse files
authored
Fix prb not loading in legacy checkout experience (#3703)
* fix prb not loading in legacy checkout experience * add changelog
1 parent 6314734 commit 1533f16

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 9.1.1 - xxxx-xx-xx =
4+
* Fix - Payment request button fails to display when the legacy checkout experience is enabled.
45

56
= 9.1.0 - 2025-01-09 =
67
* Fix - Fixes the new checkout experience not being enabled by default due to conflict with a migration.

includes/class-wc-stripe-blocks-support.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private function register_legacy_payment_method_script_handles() {
178178
* @return array
179179
*/
180180
public function get_payment_method_data() {
181-
$js_params = WC_Stripe_Feature_Flags::is_stripe_ece_enabled()
181+
$js_params = WC_Stripe_Feature_Flags::is_upe_checkout_enabled() && WC_Stripe_Feature_Flags::is_stripe_ece_enabled()
182182
? $this->get_express_checkout_javascript_params()
183183
: $this->get_payment_request_javascript_params();
184184
// We need to call array_merge_recursive so the blocks 'button' setting doesn't overwrite

includes/payment-methods/class-wc-stripe-payment-request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function __construct() {
8585
add_action( 'woocommerce_stripe_updated', [ $this, 'migrate_button_size' ] );
8686

8787
// Check if ECE feature flag is enabled.
88-
if ( WC_Stripe_Feature_Flags::is_stripe_ece_enabled() ) {
88+
if ( WC_Stripe_Feature_Flags::is_upe_checkout_enabled() && WC_Stripe_Feature_Flags::is_stripe_ece_enabled() ) {
8989
return;
9090
}
9191

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
111111
== Changelog ==
112112

113113
= 9.1.1 - xxxx-xx-xx =
114+
* Fix - Payment request button fails to display when the legacy checkout experience is enabled.
114115

115116
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)