When a user uses a card which is declined, such as test card 4000000000000341, they should be able to select a different card and try to complete the purchase again.
However, when you try this with the current cartridge, the second attempt will be blocked. The backend response will be something like this:
When a user uses a card which is declined, such as test card
4000000000000341
, they should be able to select a different card and try to complete the purchase again.However, when you try this with the current cartridge, the second attempt will be blocked. The backend response will be something like this:
The error message is
This is because the check
validatePaymentRequest
is returning false. Looking at the function, my guess is that it's this section:Probably it should be changed to
because the payment method will change in the second request (having a different credit card)