When using the Stripe payment gateway for WooCommerce, you may want to remove the Payment Request buttons (such as Apple Pay and Google Pay) from single product pages.

This method ensures the Payment Request buttons are still available during the checkout process — it disables them on single product pages only.

To remove the Payment Request buttons, add this line of code to the functions.php file located in the root folder of your WordPress theme:

add_filter( 'wc_stripe_hide_payment_request_on_product_page', '__return_true' );

To avoid overwriting the file during upgrades, ensure you are using a child theme so that your edits persist.

Buy Me A Coffee