Mobile Payment SDK "Unable to establish a secure connection to Square"

Hello,

We developed a mobile app in Java with Android Studio using the Square Reader SDK to process payments with the Reader device. Since the Square Reader SDK is retired, we are migrating our mobile app to the Mobile Payments SDK.

I have the problem that our mobile app is unable to connect to the Square services as shown in the screenshots below.

We are not distributing our mobile app through the Google Play Store but we deliver it as Signed APK files to our customers who use the app internally. I have created Signed APK files for testing and executed them on the test device (a Zebra EC55). I am able to run the app itself, but I am unable to connect to the Square services. We show the Square page for the settings and I was able to use it to pair to a physical Square Reader (1st Generation). But both pages show the same “Reader unavailable” error “Unable to establish a secure connection to Square”.

The mobile phone uses Wi-Fi connection and I can browse normally using the Chrome browser. No SIM card is installed. It is the same setup with the same type of devices that our customers use.

  • The application Id is sq0idp-QjFeYcXFd7vyAj0YmPwoxA.
  • Developer mode is not activated.
  • The device has been restarted multiple times and is fully charged.
  • We are using production credentials.
  • The location we selected is currently accepting payments via the old Reader SDK so it should be able to accept payments here, too.
  • The app’s domain and SHA256 was set under “Mobile Payments SDK” in the Square portal. Since we are delivering Signed APK files, the SDHA256 was taken via command line on Windows with CertUtil -hashfile [FILENAME] SHA256.

Any help is appreciated.

:waving_hand: 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:
https://developer.squareup.com/docs/reader-sdk/build-on-android

Additional Documentation

https://developer.squareup.com/docs/reader-sdk/quick-start/step-2
https://developer.squareup.com/docs/reader-sdk/quick-start/start
Mobile Payments SDK

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.

This does not help. I have read any guide available.

Did you just add the signature and then try to connect? :slight_smile:

I set the application’s namespace and SHA256 in the Square portal and tried to connect many times after that, yes. There is not information to be found if there is an issue there.

Good morning, I was hoping that it just needed some time for the Square Portal to update itself, but 16h later the issue remains the same. All applications on the Zebra EC55 mobile device are able to connect to the internet or their services. I still get the same errors for Square though. Is there any way I can investigate what causes the issue?