Merge pull request #3550 from woocommerce/PCP-3957-when-apple-pay-is-enabled-empty-space-for-apple-pay-button-is-showing-on-all-pages

When Apple Pay is enabled empty space for Apple Pay button is showing on all pages  (3957)
This commit is contained in:
Niklas Gutberlet 2025-08-04 19:24:14 +02:00 committed by GitHub
commit 5e1148bd0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,8 @@ registerExpressPaymentMethod( {
content: <ApplePayComponent isEditing={ false } />,
edit: <ApplePayComponent isEditing={ true } />,
ariaLabel: buttonData.title,
canMakePayment: () => buttonData.enabled,
canMakePayment: () =>
buttonData.enabled && window.ApplePaySession?.canMakePayments(),
supports: {
features,
style: [ 'height', 'borderRadius' ],