diff --git a/packages/apple-pay-integration/e2e/ApplePaySessionCustomerStepMockObject.ts b/packages/apple-pay-integration/e2e/ApplePaySessionCustomerStepMockObject.ts index 962c64643d..43707360f7 100644 --- a/packages/apple-pay-integration/e2e/ApplePaySessionCustomerStepMockObject.ts +++ b/packages/apple-pay-integration/e2e/ApplePaySessionCustomerStepMockObject.ts @@ -14,6 +14,10 @@ const addApplePaySessionToChrome = () => { return true; } + static canMakePayments() { + return true; + } + // eslint-disable-next-line @typescript-eslint/member-ordering constructor(version: number, paymentRequest: ApplePayJS.ApplePayPaymentRequest) { this.version = version; diff --git a/packages/core/src/app/checkout/Checkout.test.tsx b/packages/core/src/app/checkout/Checkout.test.tsx index abe96dc53a..a4a3547893 100644 --- a/packages/core/src/app/checkout/Checkout.test.tsx +++ b/packages/core/src/app/checkout/Checkout.test.tsx @@ -265,7 +265,9 @@ describe('Checkout', () => { }); it('renders checkout button container with ApplePay', async () => { - (window as any).ApplePaySession = {}; + (window as any).ApplePaySession = { + canMakePayments: () => true, + }; checkout.use(CheckoutPreset.RemoteProviders); checkout.use(CheckoutPreset.CheckoutWithBillingEmail);