Since version 4.0 of the official WooCommerce Stripe plugin, it started injecting a Buy Now button into cart templates. This button utilizes the new Payment Request API in supporting browsers. Although this is a very interesting technical advancement, it’s likely that your shop isn’t ready for it. On this very site for instance, I’m requiring additional fields to be filled during checkout and completing an order without those would cause problems. To (temporarily) disable this new feature, I’ve assembled the following snippet.
Striving for originality, usability, simplicity and style — Frique builds jQuery and WordPress plugins and themes that make life a little easier. Frique cares and writes about web and software usability, performance, development workflow and desire for perfection.