Hi,
We followed the instruction of applying Apply Pay to our iOS app, including download and upload the Square certificate, but we get this error when we trying to get the token.
ErrorInfo {
code=usageError,
message=Something went wrong. Please contact the developer of this application and provide them with this error code: unexpected,
debugCode=apple_pay_nonce_request_unexpected,
debugMessage=Square In-App Payments SDK encountered an unexpected error. Please contact Square developer support via
https://squareup.com/help/contact
,
}
We couldn’t find any useful information from the error, can you please help us to solve it?
Note:
Our app id: sq0idp-JlogjOwvnkjWIjwdaK1BAw
iOS merchant id: merchant.com.infinet.griddle
Do you have the location_id
and the time that this error happened? Also are you able to replicate this easily? 
location_id: LNF77AQDB3CP6
time: 2023-01-20 06:46:08.466363Z
It can be triggered everytime.
any update on this issue?
Hey @wsdzy2010, we’re checking with the team on this, but no new updates yet.
Hi Josh,
If any new update, please let us, this issue currently blocks our development.
Apologies for the delay! It looks like this is an error that actually comes from Apple, and indicates an Apple Pay certificate mismatch. Can you attempt the certification verification again?
Hi,
We encounter the same issue again, and I checked the iOS certificates in Square application find they are correct. Location id: L2E2TTDJC8ABB. It can be triggered every time.
Could you please check it. It strongly affects our clients’ business operations.
It happens again and the certificate looks good. Could you please check it. It strongly affects our clients’ business operations.
What version of In-App Payments SDK are you using. You will need to be sure to using at minimum 1.6.0. We do recommend updating to the latest version 1.6.4. 
sdk: square_in_app_payments: 1.7.8
Okay, does your app share certificates from any other SDK? 
No. And it worked well in the past month without any change.
So the most current version is 1.7.10. If you update to that version dose it work? 
Thank you, we can try that, but I’m afraid that it may not help since we have used the version 1.7.8 for weeks and this issue just started to happen days ago. I will update the result here.
We upgraded to 1.7.10 yesterday, and everything was good. We successfully added the card and placed some orders. However, we encountered a new problem today when placing an order with the same customer account, card information, and SDK version 1.7.10.
POST /v2/payments 400:
[{"code":"GENERIC_DECLINE","detail":"Authorization error: 'GENERIC_DECLINE'","category":"PAYMENT_METHOD_ERROR"},{"code":"ADDRESS_VERIFICATION_FAILURE","detail":"Authorization error: 'ADDRESS_VERIFICATION_FAILURE'","category":"PAYMENT_METHOD_ERROR"}]
The request is:
{
"source_id": "[redacted]",
"idempotency_key": "924841d8-7c79-45cc-89c4-566e3f463afe",
"amount_money": {
"amount": 112,
"currency": "USD"
},
"tip_money": {
"amount": 14,
"currency": "USD"
},
"app_fee_money": {
"amount": 6,
"currency": "USD"
},
"order_id": "TXfTUmoUyi3TPVpE3c1TBMzOfwNZY",
"customer_id": "VAKQS33XRQ6AM2AQ640GSS52W8",
"location_id": "LBNE3R674ACCB"
}
Time: 2025-02-18 10:57:23 GMT+8
Do you have 3DS enabled on the account? 