UnexpectedError: An unexpected error occurred while using Apple Pay

Hello Team,

Getting error that “UnexpectedError: An unexpected error occurred while using Apple Pay.” first time when I execute apple Pay. On 2nd Call It is working fine.

Are there any console errors or network errors when you inspect the page for the initial error? :slightly_smiling_face:

Hi Bryan,

The same error occurred on our Square sandbox env,
We are trying it through Square Web SDK, and when called await payments.applePay(paymentRequest), below error came out, and the error is gone when we called it again.

Any suggestion is appreciated.

UnexpectedError: An unexpected error occurred while using
Apple Pay.
ti@https://sandbox.web.squarecdn.com/v1/square.js:3:140515
Fi@https://sandbox.web.squarecdn.com/v1/square.js:3:150537
@https://sandbox.web.squarecdn.com/v1/square.js:3:231461
Sc@https://sandbox.web.squarecdn.com/v1/square.js:3:230594
s@https://sandbox.web.squarecdn.com/v1/square.js:3:230837

Thanks.

Is the page that your seeing this with hosted? If so what’s the address? :slightly_smiling_face:

Replied with the address in direct message :slight_smile:

Hmm, I’m not even able to select Apple Pay or Google Pay. It only allows me to select card. :slightly_smiling_face:

may i know which browser you tried?

I tried this on Safari. :slightly_smiling_face: