woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
233 stars 203 forks source link

Console error when disabling Test mode without valid keys #3025

Open a-danae opened 7 months ago

a-danae commented 7 months ago

Describe the bug An error is displayed in the browser controller when toggling the Test mode.

No functionality is affected, thus marking this as a low-priority issue.

To Reproduce Steps to reproduce the behavior:

  1. Go to the WC Stripe settings page > Settings tab > Account details
  2. Add test API keys
  3. Ensure the live keys are empty (not sure if it's relevant, but that's my setup when testing this)
  4. Under the General section, uncheck the "Enable test mode" checkbox
  5. Save the settings
  6. Open the browser console and notice the following error
``` `@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles. at http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:9683:73 at div at http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:9683:73 at AccountDetails (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:4445:80) at div at http://localhost:8082/wp-includes/js/dist/components.js?ver=9a812780592a1d78379b:14675:47 at UnconnectedCardBody (http://localhost:8082/wp-includes/js/dist/components.js?ver=9a812780592a1d78379b:47588:7) at http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:9683:73 at div at http://localhost:8082/wp-includes/js/dist/components.js?ver=9a812780592a1d78379b:14675:47 at div at http://localhost:8082/wp-includes/js/dist/components.js?ver=9a812780592a1d78379b:14675:47 at BaseContextSystemProvider (http://localhost:8082/wp-includes/js/dist/components.js?ver=9a812780592a1d78379b:12122:3) at UnconnectedCard (http://localhost:8082/wp-includes/js/dist/components.js?ver=9a812780592a1d78379b:47364:7) at AccountDetailsSection (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:6958:5) at Loadable (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:284:5) at LoadableBlock (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:306:5) at LoadableAccountSection (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:6171:5) at div at http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:9683:73 at div at http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:9683:73 at SettingsSection (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:8593:5) at PaymentSettingsPanel (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:7653:91) at div at div at Role (http://localhost:8082/wp-includes/js/dist/components.js?ver=9a812780592a1d78379b:6533:32) at div at UnforwardedTabPanel (http://localhost:8082/wp-includes/js/dist/components.js?ver=9a812780592a1d78379b:73008:3) at http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:9683:73 at div at http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:9683:73 at SettingsManager (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:8499:65) at UpeToggleContextProvider (http://localhost:8082/wp-content/plugins/woocommerce-gateway-stripe/build/upe_settings.js?ver=fcc048e0275b87dd63cfa2801332db00:8670:5) ```

Expected behavior

No errors must be triggered when test mode is disabled.

Screenshots

image
github-actions[bot] commented 1 month ago

Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

github-actions[bot] commented 3 weeks ago

This issue has gone 180 days (6 months) without any activity.