# I'm receiving an authorization\_unsupported\_country error message on iOS even though my location and device are in Canada

**URL:** <https://developer.squareup.com/forums/t/im-receiving-an-authorization-unsupported-country-error-message-on-ios-even-though-my-location-and-device-are-in-canada/26706>\
**Category:** Questions\
**Tags:** mobile-payments-sdk\
**Created:** [July 2, 2026, 2:50pm UTC](https://developer.squareup.com/forums/t/im-receiving-an-authorization-unsupported-country-error-message-on-ios-even-though-my-location-and-device-are-in-canada/26706 "2026-07-02T14:50:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wcense](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@wcense](https://developer.squareup.com/forums/u/wcense)\
**Post date:** [July 2, 2026, 2:50pm UTC](https://developer.squareup.com/forums/t/im-receiving-an-authorization-unsupported-country-error-message-on-ios-even-though-my-location-and-device-are-in-canada/26706/1 "2026-07-02T14:50:37Z")

</div>

We are integrating the Square Mobile Payments SDK (v2.5.0) via the React Native bridge (`mobile-payments-sdk-react-native` v2026.4.1) and receiving `authorization_unsupported_country` on iOS only. Android authorizes successfully with identical credentials.

**Details:**

- Application ID: `sq0idp-...` (production)
- Location ID: `LF4SA87MZ2KQB`
- Merchant ID: `QWWFM0ZBWDDRJ`
- Location country (confirmed via API): `CA`
- Merchant country (confirmed via API): `CA`
- Device locale: Canada
- iOS SDK version: SquareMobilePaymentsSDK 2.5.0

**What we’ve ruled out:**

- Wrong location ID — confirmed via `GET /v2/locations/LF4SA87MZ2KQB`, country is `CA`
- Wrong merchant country — confirmed via `GET /v2/merchants/QWWFM0ZBWDDRJ`, country is `CA`
- Device locale — set to Canada
- Location permission — granted before `authorize()` is called
- Wrong application ID — using the correct production `sq0idp-` prefixed string from app build config

**Behaviour:**  
`authorize(accessToken, locationId)` is called at app startup. On Android it succeeds. On iOS it immediately fails with error code `authorization_unsupported_country` and message: _“The Square Mobile Payments SDK could not complete the authorization request because the merchant is in a country that is not supported by Mobile Payments SDK.”_ The `debugCode` field on the error is also `authorization_unsupported_country` with no additional detail.

I’m not sure why this is happening.

---

<div class="post-metadata">

**Author:** ![wcense](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@wcense](https://developer.squareup.com/forums/u/wcense)\
**Post date:** [July 7, 2026, 1:09pm UTC](https://developer.squareup.com/forums/t/im-receiving-an-authorization-unsupported-country-error-message-on-ios-even-though-my-location-and-device-are-in-canada/26706/3 "2026-07-07T13:09:07Z")

</div>

I currently don’t have the com.apple.developer.proximity-reader.payment.acceptance entitlement could that be the cause? is it necessary even if you’re not using Tap-to-Pay?

---

<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:** [July 7, 2026, 2:32pm UTC](https://developer.squareup.com/forums/t/im-receiving-an-authorization-unsupported-country-error-message-on-ios-even-though-my-location-and-device-are-in-canada/26706/5 "2026-07-07T14:32:25Z")

</div>

The `proximity-reader` entitlement should not be an issue as that’s only needed for Tap to Pay on iPhone, not for external readers.

Since Android works with the same credentials, the most common cause of this on iOS is a mismatch between the Application ID passed to `initializeWithApplicationLaunchOptions:` in your AppDelegate and the one tied to your OAuth token (iOS has that extra initialization step). Could you double-check that those app IDs match exactly?

If that doesn’t resolve it, let us know and we can look into the account flags on our end!

---

<div class="post-metadata">

**Author:** ![wcense](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@wcense](https://developer.squareup.com/forums/u/wcense)\
**Post date:** [July 7, 2026, 7:48pm UTC](https://developer.squareup.com/forums/t/im-receiving-an-authorization-unsupported-country-error-message-on-ios-even-though-my-location-and-device-are-in-canada/26706/6 "2026-07-07T19:48:37Z")

</div>

Thank you, you helped me find the issue, there was a mismatch. Our workflow was injecting a stale id from the environment at the pre-build stage.
