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 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?
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
Enable Apple Pay
Web Payments SDK Requirements
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.
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:
- Ensure that your Square application ID is correctly set in your application.
- Make sure that you’re using the correct test card values for SCA testing in the Sandbox.
- 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.
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).
This is only with sandbox that you have this issue?
Yes, but we did not actually test it on prod, since we do not want to go to prod with this issue
What device an iOS are you running this on so we can try to replicate?
It was on iPhone 14 pro.
Okay, what iOS version?
It is iOS 17.4.1 (21E236)