Woocommerce

Hide Stripe “Buy Now” Button

By June 4, 2020August 3rd, 2020No Comments

I needed to allow the “buy now” functionality of the shopping cart (WooCommerce – this website) but I didn’t want Stripe payment flow interrupting. This is NOT a standard setting in settings > payments > Stripe as you might believe. But there is a filter!

add_filter( 'wc_stripe_hide_payment_request_on_product_page', '__return_true' );

Contact us to learn about adopting the web for your business

Jarod Thornton

Author Jarod Thornton

More posts by Jarod Thornton