When using the Stripe Payment Gateway in WooCommerce, the Apple Pay button on single product pages may often result in a Postal Address Invalid error. There doesn’t appear to be a known fix at present, so the most straightforward approach is to disable it. Apple Pay will still be available during the checkout process – this method only disables Apple Pay on single product pages, which is where problems can occur.

To remove the button, 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.