Apple Pay stopped working in Production (v1.5.8 of Square In-App Payments SDK iOS)

Hi All,

Our iOS app was using v1.5.8 of Square In-App Payments SDK iOS from quite sometime to generate nonce and pay using Apple Pay. We noticed it to be failing for the last few days in Square Sandbox, and today (02/11/2025) it has stopped working in Production all of a sudden.

We have verified that the certificates in Apple Developer Account are up to date and matching exactly with the certificates added in Square Developer Dashboard for the mentioned app.

Square function from iOS SDK: SQIPApplePayNonceRequest
The error message that we started receiving from Square: Something went wrong. Please contact the developer of this application and provide them with this error code: unexpected

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

In-App Payment Solutions
Build on iOS: In-App Payments SDK
In-App Payments SDK Quickstart

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

What’s your application ID and the location_id where payments are failing? :slight_smile:

This is our main application where we have the setup for iOS apple pay certificates.

App ID: sq0idp-TcUjud5cVASXQhjSfR8vRw

When you say location_id is that the merchant location where we are placing the order?

In that case, one possible value for the location_id where payments are failing is LHR32987HEHA4

We are seeing reports of the same issue. We’re currently using the react-native-square-in-app-payments library on version 1.7.0 and trying to use the requestApplePayNonce.

The error message that we started receiving from Square: Something went wrong. Please contact the developer of this application and provide them with this error code: unexpected

@SohamPurs I see that the certificate was updated today. Did that fix the issue? Also have you looked into updating too the latest version of the SDK to see if that fixes the issue?

@ktaboada What’s your application ID and location_id? Also have you checked to see if the certificates are still valid? :slight_smile:

@Bryan-Square We tried updating the certificate just to rule out that the issue was not about that and that did not fix it. Updating our code to use latest version of SDK v1.6.4 fixed it.

Has something changed in the way square interacts with apple while generating nonce between these versions?

Thanks for investigating!

From 1.5.8 to 1.6.4 there were a lot of updates in the different versions so it’s hard to narrow it down to one specific thing that would have solved this. :slight_smile:

We updated our react-native-square-in-app-payments version from 1.7.0 to 1.7.6 which upgraded the iOS SDK from 1.5.4 to 1.6.3 which also resolved our issue. thanks for the help!