Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECE - error when the store provides more than 9 shipping rates #10490

Open
frosso opened this issue Mar 5, 2025 · 0 comments · May be fixed by #10491
Open

ECE - error when the store provides more than 9 shipping rates #10490

frosso opened this issue Mar 5, 2025 · 0 comments · May be fixed by #10491
Assignees
Labels
focus: checkout payments size: x-small This issue is sized less than a single story point. type: bug The issue is a confirmed bug.

Comments

@frosso
Copy link
Contributor

frosso commented Mar 5, 2025

Describe the bug

I noticed the ECE (both tokenized ECE and non-tokenized ECE) can error out with the following message:

Uncaught (in promise) IntegrationError: Invalid value for shippingaddresschange event resolve callback: shippingRates should be an array of size less than 10. You specified [redacted]

I couldn't find this limitation being documented on the Stripe website docs.

To Reproduce

  1. As a merchant, navigate to wp-admin > WooCommerce > Settings > Shipping
  2. If you don't have it already, create a "US" (or US California, to be even more specific - you'll need it to match with Google Pay test shipping addresses) shipping zone
  3. Add 10 shipping options to the shipping zone (they can all be "flat rate", for example)
  4. As a merchant, ensure you have Google Pay/Apple Pay enabled in your WooPayments settings
  5. As a customer, add a physical product to the cart
  6. Navigate to the cart page (either block-based or shortcode-based)
  7. Click on the GooglePay/ApplePay button
  8. Select the "California" address
  9. Notice the error in the console
Image Image Image

Actual behavior

Screenshots

Expected behavior

There should be no error in the console.
The shipping rates should be limited to 9.

Additional context

@frosso frosso added the type: bug The issue is a confirmed bug. label Mar 5, 2025
@frosso frosso self-assigned this Mar 5, 2025
@frosso frosso added the size: x-small This issue is sized less than a single story point. label Mar 5, 2025
@frosso frosso linked a pull request Mar 5, 2025 that will close this issue
6 tasks
@frosso frosso added this to the WooPayments 9.1.0 milestone Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: checkout payments size: x-small This issue is sized less than a single story point. type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants