{"section":"known-issues","requestedLocale":"en","requestedSlug":"interacting-with-the-payment-component-while-is-still-in-a-loading-state-sends-the-wrong-payment-option","locale":"en","slug":"interacting-with-the-payment-component-while-is-still-in-a-loading-state-sends-the-wrong-payment-option","path":"docs/en/known-issues/Checkout/interacting-with-the-payment-component-while-is-still-in-a-loading-state-sends-the-wrong-payment-option.md","branch":"main","content":"## Summary\n\nWhen a shopper selects a payment sub-option (e.g., EFECTY, PSE, Boleto) while the payment component is still loading on the checkout page, a race condition causes the wrong option to be sent to the orderForm. Instead of the option the shopper selected, the first available sub-option is submitted. The order fails to be created, and the shopper sees an error asking them to review their payment information.\n\n## Simulation\n\n- Add items to the cart and proceed to the payment step.\n- While the payment component is still loading, click on a payment method that has multiple sub-options.\n- Select any sub-option other than the first one in the list.\n- Attempt to place the order.\n- Observe that the order fails, the first sub-option in the list was submitted instead of the one selected.\n- Note: the behavior is intermittent, as it depends on timing during the loading state.\n\n## Workaround\n\nWait for the payment component to fully load before selecting a payment method or any of its sub-options. Proceed with the selection only after all options are visible and the loading indicator has disappeared."}