# iOS In-App Payments SDK returns invalid\_application\_id with matching Production Application ID

**URL:** <https://developer.squareup.com/forums/t/ios-in-app-payments-sdk-returns-invalid-application-id-with-matching-production-application-id/27502>\
**Category:** Questions\
**Tags:** in-app-payments-sdk\
**Created:** [September 5, 2026, 3:20am UTC](https://developer.squareup.com/forums/t/ios-in-app-payments-sdk-returns-invalid-application-id-with-matching-production-application-id/27502 "2026-09-05T03:20:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![levent](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@levent](https://developer.squareup.com/forums/u/levent)\
**Post date:** [September 5, 2026, 3:20am UTC](https://developer.squareup.com/forums/t/ios-in-app-payments-sdk-returns-invalid-application-id-with-matching-production-application-id/27502/1 "2026-09-05T03:20:19Z")

</div>

We are experiencing `invalid_application_id` during card nonce creation in the Square In-App Payments SDK on iOS.

**Application:** KOCH-WAYNE LIMO  
**Production Application ID:** `sq0idp-M2sNMfAllPikTyvG1jdxmw`  
**iOS bundle ID:** `com.kochwaynelimo.app`

**SDK configuration**

- Square In-App Payments SDK for iOS
- `react-native-square-in-app-payments@2.1.1`
- Embedded Square In-App Payments SDK version: `1.6.7`
- Production environment
- TestFlight build on a real iPhone

**Behavior**

1. Native Square card-entry screen opens successfully.
2. A valid real credit card can be entered.
3. When Save is tapped, Square displays:  
`invalid_application_id`
4. No card nonce is returned to the application.
5. Our backend is never called.

**What we have verified**

- The Production Application ID in Square Developer Dashboard exactly matches the ID embedded in the TestFlight IPA.
- There is no second or sandbox Square Application ID in the app.
- The Application ID is set before starting the native card-entry flow.
- Bundle ID is `com.kochwaynelimo.app`.
- The app is using Square **In-App Payments SDK** , not Mobile Payments SDK.
- Therefore the Mobile Payments SDK application-signature requirement does not apply.
- Square API Logs show no KOCH backend payment request because the failure occurs during native card nonce creation.

Could Square please verify whether this Production application is enabled/valid for In-App Payments card nonce creation and investigate why the nonce service is returning `invalid_application_id` despite the Application ID matching the Developer Dashboard?

I can provide additional non-secret diagnostic details if needed.

---

<div class="post-metadata">

**Author:** ![ashley-square](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@ashley-square](https://developer.squareup.com/forums/u/ashley-square)\
**Post date:** [September 8, 2026, 5:17pm UTC](https://developer.squareup.com/forums/t/ios-in-app-payments-sdk-returns-invalid-application-id-with-matching-production-application-id/27502/3 "2026-09-08T17:17:41Z")

</div>

Thank you for all the detail! `invalid_application_id` at nonce creation means the nonce service rejected the ID it received, which isn’t always the same as the ID you think you set. A few things worth checking, roughly in order of how often they turn out to be the cause:

1. Verify the ID at runtime, not in config. Log the application ID immediately before you initialize the SDK and inspect the exact string, length included. If the value flows through a build-time env var, `.env` file, or native config, trailing whitespace, a newline, or silent truncation is a common culprit and it’s invisible in a side-by-side visual comparison against the dashboard.
2. Confirm the environment matches the ID. A production `sq0idp-` ID must be used with the SDK in production mode. With `react-native-square-in-app-payments`, a lingering `setSquareApplicationId` call from a sandbox code path, or a debug initializer that still runs in your TestFlight build, will produce exactly this error.
3. Check that the Square account is activated for payments. If the account behind the application hasn’t completed activation for card processing, application-level calls can be rejected before any payment is attempted, which matches what you’re seeing, since your backend is never reached and nothing appears in API Logs.

---

<div class="post-metadata">

**Author:** ![caffesabrina](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@caffesabrina](https://developer.squareup.com/forums/u/caffesabrina)\
**Post date:** [September 14, 2026, 4:17pm UTC](https://developer.squareup.com/forums/t/ios-in-app-payments-sdk-returns-invalid-application-id-with-matching-production-application-id/27502/5 "2026-09-14T16:17:25Z")

</div>

Hi Ashley did you get this resolved? I have a very similar case here: [Production invalid\_application\_id with iOS In-App Payments SDK 1.6.7](https://developer.squareup.com/forums/t/production-invalid-application-id-with-ios-in-app-payments-sdk-1-6-7/27541) and I’m struggling to get it resolved. Could I ask you to step in and assist please?
