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

**URL:** <https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023>\
**Category:** Questions\
**Tags:** in-app-payments-sdk\
**Created:** [February 12, 2025, 1:06am UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023 "2025-02-12T01:06:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SohamPurs](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@SohamPurs](https://developer.squareup.com/forums/u/SohamPurs)\
**Post date:** [February 12, 2025, 1:06am UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/1 "2025-02-12T01:06:55Z")

</div>

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**

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [February 12, 2025, 1:07am UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/2 "2025-02-12T01:07:16Z")

</div>

👋 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:

> **[Troubleshoot In-App Payments SDK Problems](https://developer.squareup.com/docs/in-app-payments-sdk/troubleshooting)**
>
> Troubleshoot problems with the Square In-App Payments SDK.

> **[Enable Apple Pay](https://developer.squareup.com/docs/in-app-payments-sdk/add-digital-wallets/apple-pay)**
>
> Enable Apple Pay for the Square In-App Payments SDK.

> **Additional Documentation**
>
> [In-App Payment Solutions](https://developer.squareup.com/docs/in-app-payments)  
> [Build on iOS: In-App Payments SDK](https://developer.squareup.com/docs/in-app-payments-sdk/build-on-ios)  
> [In-App Payments SDK Quickstart](https://developer.squareup.com/docs/in-app-payments-sdk/quick-start)

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.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 12, 2025, 1:14am UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/3 "2025-02-12T01:14:32Z")

</div>

What’s your application ID and the `location_id` where payments are failing? 🙂

---

<div class="post-metadata">

**Author:** ![SohamPurs](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@SohamPurs](https://developer.squareup.com/forums/u/SohamPurs)\
**Post date:** [February 12, 2025, 2:07am UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/4 "2025-02-12T02:07:58Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![ktaboada](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@ktaboada](https://developer.squareup.com/forums/u/ktaboada)\
**Post date:** [February 12, 2025, 4:13pm UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/5 "2025-02-12T16:13:50Z")

</div>

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**

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 12, 2025, 5:13pm UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/6 "2025-02-12T17:13:53Z")

</div>

@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? 🙂

---

<div class="post-metadata">

**Author:** ![SohamPurs](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@SohamPurs](https://developer.squareup.com/forums/u/SohamPurs)\
**Post date:** [February 12, 2025, 5:17pm UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/7 "2025-02-12T17:17:13Z")

</div>

@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!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 12, 2025, 5:23pm UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/8 "2025-02-12T17:23:15Z")

</div>

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. 🙂

---

<div class="post-metadata">

**Author:** ![ktaboada](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@ktaboada](https://developer.squareup.com/forums/u/ktaboada)\
**Post date:** [February 14, 2025, 11:00pm UTC](https://developer.squareup.com/forums/t/apple-pay-stopped-working-in-production-v1-5-8-of-square-in-app-payments-sdk-ios/21023/9 "2025-02-14T23:00:36Z")

</div>

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!
