GPay button disappears on failed validation
-
Hello!
Before explaining my request, I would like to congratulate you for the excellent plugin. It works way better than the official one ??
But I have this issue (I’ll try to explain it at my best):
When I try to submit a payment with Google Pay, but failing the validation (e. g. terms not accepted, missing required fields), my checkout page shows the error message (correct), but the Google Pay button becomes hidden, showing instead the standard checkout button (the “place order” one). Then if I try to change my payment method to the standard one and go back to GPay, it won’t show either.Investigating the problem I discovered that the issue is caused by the function
on_token_received
(wc-stripe.js, row 1003). Here I saw these lines:this.payment_token_received = true;
this.set_nonce(paymentMethod.id);
this.hide_payment_button();
this.show_place_order();
So, getting to the point, my question is: Why the standard button needs to be reverted when you receive the token? And why there isn’t a “remove token” function that reset the operation if the validation fails?
Maybe this is just my problem but I really hope to contribute to the improvement of this plugin.
Thank you for your attention,
Simone
- The topic ‘GPay button disappears on failed validation’ is closed to new replies.