If you go to the payment page and change from uc_stripe to a non-uc_stripe payment method like paypal, the uc_stripe.js validates the page and it fails saying "This card number looks invalid.". I imagine that related issues occur if uc_stripe is not the default payment type and you switch to stripe as the payment type.
Comments
Comment #2
rfayHere's a patch. It touches lots of things, as there are so many ways for interactions to cause problems. I've tested
* Checkout form that does not include uc_stripe activities (free order)
* Checkout form with both stripe and paypal
* Checkout form with paypal default and stripe second.
Would love review. This is an important cleanup, but quite disruptive in uc_stripe.js
Comment #3
rfaySlight change to deal with browser caching. The js will set the value of the token to 'default' in case it's not set to that on page load. The form alter should have done that, but there are edge cases where it's not populated properly.
Comment #4
rfayI went ahead and pushed the patch in #3 - would still love review.