Open alexflorisca opened 1 year ago
I tested the behavior with UPE disabled and could not reproduce it (the onChange handler is called for me). But it does not work for other team members. I will take a further look 👀
I was able to reproduce this issue later. This happens when you click the "Place Order" button directly without clicking anywhere on the screen before (which would force a blur in the field).
Despite apparently related to the blur call, I have included a log inside the onBlur
element method and it is called even without forcing the blur (following the steps mentioned above). So, it must be something else.
I tried to fix this issue with a "hack": trigger the blur
event before submitting the form. But I could not find a way to call it before the card form is disabled (so it had no effect). We need help here from someone more expert in the frontend I guess.
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.
This issue has gone 180 days (6 months) without any activity.
Describe the bug
When using the stripe gateway plugin on the Checkout Block, the onChange handler here is not being triggered, and so the sourceId is not being reset.
This leads to the current payment attempt using an old sourceId, which inevitably fails. A good example of this is a user tries a card which fails (4000 0000 0000 0002), then a card which is valid (4242 4242 4242 4242). If the valid card is filled via a password manager for example, and is autofilled, then the
onChange
event is not triggered and the payment will use a stalesourceId
.To reproduce
Sorry, we are unable to process your payment at this time. Please retry later.
Expected behavior
I should be able to checkout successfully with a valid card, at any time