Time:About 11:45 July 1, 2023
LocationID:L5AQ865GZCXKG
Plugin version:1.7.3
happening in production.
How can I solve this issue?
Time:About 11:45 July 1, 2023
LocationID:L5AQ865GZCXKG
Plugin version:1.7.3
happening in production.
How can I solve this issue?
What was the error message we sent to the server? That should have more detailed information. Also what’s the application ID?
Thank you for your reply!
Application ID is: sq0idp-nLHuyQkjmpYX0S8uYZ2IYQ .
What exactly do you mean by server?
Hello, find any information according to the APPID?
Hi @jas0n , I can help here while Bryan is out.
Taking a look at the application’s Developer Dashboard API logs, I can see a CreateCard API call at 2023-07-01 11:49:00 GMT-7
{
"errors": [
{
"category": "INVALID_REQUEST_ERROR",
"code": "INVALID_CARD_DATA",
"detail": "Invalid card data.",
"field": "source_id"
}
]
}
With INVALID_CARD_DATA you will need to have the customer re-enter their card data cause something wasn’t correct. The API was designed to not give the specific fields that have issues for fraud protection from bad actors. If the customer continues to get this error they should then be instructed to contact their bank to verify the information they’re entering is the correct information that the bank has on file.
Thank you for your reply!
First of all, I’m sorry, the time should be around 2023-06-31 18:50 GMT-7.
Secondly, this is an error reported by the user when opening the add card page, and the card information has not been entered yet.
I didn’t find a matching log at this time.
@jas0n Could you clarify the date for the timestamp - 2023-06-31 18:50 GMT-7. By June 31, did you mean June 30 or July 1?
About the picture of the error, I want to double check if your application is updated to the latest specs for the Flutter plugin - GitHub - square/in-app-payments-flutter-plugin: Flutter Plugin for Square In-App Payments SDK. Can you note if this is on iOS or Android, and that everything is at the build requirement versions?
After making sure the application is up to date, are you able to consistently reproduce the error? Could I get a video?
Thank you for your reply!
Sorry, it’s June 30.
I am not currently using the latest version. I will upgrade to the latest version to see if I can reproduce the error.
The same problem, does anyone have any guesses?
What version of the SDK are you running and are there any additional errors in your server logs?
It happened again around 2023-08-19 15:30:00 GMT-7.
The iOS SDK version we are currently using is 1.6.1, which has been upgraded to the latest version.
In the app’s developer dashboard API logs, I don’t see any matching logs either.
Hello, in our case, this issue always arises when a customer tries to make a payment while being in a country that Square does not support. (As a major payment provider, Square is available in the USA, the UK, Ireland, Canada, Australia, and Japan, and accepts each country’s currency. Customers can enter their credit card details right on your store’s checkout page, making the checkout process easier and faster.) Alternatively, if the user is using a VPN client that changes their geolocation to a country outside the Square-supported zone. For instance, I am physically located in Ukraine and cannot use Square for payment unless I activate a VPN and change my geolocation, for example, to the USA.
Therefore, you can definitely reproduce this issue by using a VPN client and changing your country to one of those that is not covered by Square’s service area.
It can be confirmed that the user does not use VPN, the user uses this function in the USA, and the user succeeds after one retry.
So when you retry it succeeds? The payment is successful?
Yes, the user tried to add a bank card again and it succeeded. Besides the Dashboard, where else can I see related error messages?
We will always send a more detailed response to your server that made the API request. So the error message will be in the API logs as well as a response will be sent to your server.
Do you mean API Logs of Dashboard?
Yes, are there any Dashboard logs?
Find the log according to the time of the feedback problem, but no matching log is found.