checkout-js
checkout-js copied to clipboard
Issue clicking continue from step 2 to 3 after customizing
Seeing the issue here
This code looks the same in the current github library as it does in ours. Here’s what we are encountering in a nutshell:
Before the code I link to above runs, we call some remote APIs that have await on them, which work and then forces a Checkout refresh to show those on the optimized checkout. So we call
await this.props.checkoutService.loadCheckout();
What we are seeing is inconsistent behavior from the Continue button on step 2:
- Sometimes it continues to step 4 (which makes sense because our tests have “Same as billing address” checked.
- Sometimes it doesn’t continue, it fires and seemingly times-out (with no errors in console that indicate what happened, in those cases, click continue again works fine).
- Sometimes it moves to step 3 (which makes no sense, because the billingSameAsShipping parameter is true when we test that) on this call:
navigateNextStep(billingSameAsShipping);