From 33b27e5ee423394932948231c951ef64e1dc7e4b Mon Sep 17 00:00:00 2001 From: Emili Castells Guasch Date: Wed, 23 Jul 2025 14:45:00 +0200 Subject: [PATCH] Add condition to display button if apple session and can make payments --- modules/ppcp-applepay/resources/js/boot-block.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ppcp-applepay/resources/js/boot-block.js b/modules/ppcp-applepay/resources/js/boot-block.js index eff026251..e75a9f550 100644 --- a/modules/ppcp-applepay/resources/js/boot-block.js +++ b/modules/ppcp-applepay/resources/js/boot-block.js @@ -105,7 +105,8 @@ registerExpressPaymentMethod( { content: , edit: , ariaLabel: buttonData.title, - canMakePayment: () => buttonData.enabled, + canMakePayment: () => + buttonData.enabled && window.ApplePaySession?.canMakePayments(), supports: { features, style: [ 'height', 'borderRadius' ],