# SCA payment issue on iOS

**URL:** <https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [May 10, 2024, 4:39pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647 "2024-05-10T16:39:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://developer.squareup.com/forums/u/Ivan)\
**Post date:** [May 10, 2024, 4:39pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/1 "2024-05-10T16:39:16Z")

</div>

Hi, we have issue with SCA payments on iOS safari (for now only in sandbox environment).  
After submitting verification code with default SCA test card listed here [Sandbox Payments](https://developer.squareup.com/docs/devtools/sandbox/payments) nothing really happens or we are getting whitelabel error page with internal server error text. It works fine on all other environments except iphone safari. We are using @square/web-sdk for providing square payment form. Funny moment that error cannot be reproduced on browerstack on the same device configuration.  
May be there are issues with default iOS settings or something like that?

---

<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:** [May 10, 2024, 4:39pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/2 "2024-05-10T16:39:36Z")

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

> **[Sandbox Payments](https://developer.squareup.com/docs/devtools/sandbox/payments)**
>
> A quick reference of test credit card numbers and payment tokens you can use to make test payments with the Square Sandbox.

> **Additional Documentation**
>
> [Enable Apple Pay](https://developer.squareup.com/docs/in-app-payments-sdk/add-digital-wallets/apple-pay)  
> [Web Payments SDK Requirements](https://developer.squareup.com/docs/app-marketplace/requirements/web-payments-sdk)  
> [In-App Payments SDK Quickstart](https://developer.squareup.com/docs/in-app-payments-sdk/quick-start/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:** ![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:** [May 10, 2024, 4:41pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/3 "2024-05-10T16:41:08Z")

</div>

The issue you’re experiencing might be related to the specific environment or settings on the iPhone you’re testing with. The Square Sandbox environment should work consistently across different platforms and browsers, including Safari on iPhone.

However, please note that the Web Payments SDK and In-App Payments SDK handle SCA differently. For the Web Payments SDK, you should use a payment token returned by the Web Payments SDK to test different SCA scenarios. For the In-App Payments SDK, you should use a payment token returned by the In-App Payments SDK to test different SCA scenarios.

If you’re still experiencing issues, it might be helpful to check the following:

1. Ensure that your Square application ID is correctly set in your application.
2. Make sure that you’re using the correct test card values for SCA testing in the Sandbox.
3. Verify that your implementation of the SCA flow is correct, including handling of the verification result.

If the issue persists, it might be a specific issue with the device or its settings. Testing on a different device or resetting the device settings might help identify the issue.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://developer.squareup.com/forums/u/Ivan)\
**Post date:** [May 15, 2024, 9:19am UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/4 "2024-05-15T09:19:44Z")

</div>

Hi again, none of above is not really helpful. May be you can provide some additional info in which direction should we investigate this problem. In remainder the problem was with SCA payments on some iPhones(Safari browser).

---

<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:** [May 15, 2024, 5:28pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/5 "2024-05-15T17:28:09Z")

</div>

This is only with sandbox that you have this issue? 🙂

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://developer.squareup.com/forums/u/Ivan)\
**Post date:** [May 15, 2024, 6:34pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/6 "2024-05-15T18:34:04Z")

</div>

Yes, but we did not actually test it on prod, since we do not want to go to prod with this issue 😀

---

<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:** [May 15, 2024, 6:51pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/7 "2024-05-15T18:51:02Z")

</div>

What device an iOS are you running this on so we can try to replicate? 🙂

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://developer.squareup.com/forums/u/Ivan)\
**Post date:** [May 15, 2024, 7:04pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/8 "2024-05-15T19:04:12Z")

</div>

It was on iPhone 14 pro.

---

<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:** [May 15, 2024, 7:15pm UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/9 "2024-05-15T19:15:33Z")

</div>

Okay, what iOS version? 🙂

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://developer.squareup.com/forums/u/Ivan)\
**Post date:** [May 16, 2024, 9:12am UTC](https://developer.squareup.com/forums/t/sca-payment-issue-on-ios/15647/10 "2024-05-16T09:12:03Z")

</div>

It is iOS 17.4.1 (21E236)
