Skip to content

Commit

Permalink
Fix prb not loading in legacy checkout experience (#3703)
Browse files Browse the repository at this point in the history
* fix prb not loading in legacy checkout experience

* add changelog
  • Loading branch information
Mayisha authored Jan 10, 2025
1 parent 6314734 commit 1533f16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*** Changelog ***

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

= 9.1.0 - 2025-01-09 =
* Fix - Fixes the new checkout experience not being enabled by default due to conflict with a migration.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wc-stripe-blocks-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function register_legacy_payment_method_script_handles() {
* @return array
*/
public function get_payment_method_data() {
$js_params = WC_Stripe_Feature_Flags::is_stripe_ece_enabled()
$js_params = WC_Stripe_Feature_Flags::is_upe_checkout_enabled() && WC_Stripe_Feature_Flags::is_stripe_ece_enabled()
? $this->get_express_checkout_javascript_params()
: $this->get_payment_request_javascript_params();
// We need to call array_merge_recursive so the blocks 'button' setting doesn't overwrite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function __construct() {
add_action( 'woocommerce_stripe_updated', [ $this, 'migrate_button_size' ] );

// Check if ECE feature flag is enabled.
if ( WC_Stripe_Feature_Flags::is_stripe_ece_enabled() ) {
if ( WC_Stripe_Feature_Flags::is_upe_checkout_enabled() && WC_Stripe_Feature_Flags::is_stripe_ece_enabled() ) {
return;
}

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
== Changelog ==

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

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

0 comments on commit 1533f16

Please sign in to comment.