Square in ios app shows error

Hi,

I have implemented square in my ios app two years back and it was working perfectly fine. But from last week, after entering card details in square card entry form, it gives request_card_nonce_uexpected. Haven’t made any change in app side or square application id recently. Can you pls help me to fix this error.

Error: “Something went wrong. Please contact the developer of this application and provide them with this error code: request_card_nonce_unexpected”

Thanks

:wave: 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

In-App Payments SDK: How It Works
In-App Payment Solutions
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.

Are you using our In-App Payments SDK and a version that’s older then 1.6.0? If so the security certificates expired on any version before 1.6.0. You should have received an email from us in June of 2024 asking you to update for expiring certificates. :slight_smile:

How can i update the certificate? Please help me to do that

You’ll have to update to a newer version of the SDK. It should be pretty straight forward. The latest version of the SDK is 1.6.4. The only notable change you’ll need to make is in the setup script section. :slight_smile: