#uday_error
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1227530805933375539
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
first call class=RestClient message="url=https://api.stripe.com/v1/terminal/connection_tokens/activate status=OK api by terminal and then it give
class=TerminalSession
com.stripe.stripeterminal.external.models.TerminalException: Must have a country code to connect to a Tap to Pay reader.
connectM2ResponseString D reader = {"command":"connect-tap-to-pay-response","error_code":"INTEGRATION_ERROR.MISSING_REQUIRED_PARAMETER","error_description":"Must have a country code to connect to a Tap to Pay
reader.","status":"error"}
on
discoveryCancelableT2P = Terminal.getInstance().discoverReaders(
config,
this,
object : Callback {
before sdk update i am using
val config = DiscoveryConfiguration(
timeout = 0,
discoveryMethod = DiscoveryMethod.LOCAL_MOBILE,
// isSimulated = true, // for dev
isSimulated = false, // for live
location = LOCATION_ID
)
code
it was woring fine
Could you please share the location ID?
"location_id":"tml_FHwmfgXKcv8DZY"
Are you sure that's the location you're using, because I see that this error is specifically triggered when a country is not set of the location.
Yes it was working in old Stripe sdk version 2.21.1 but after updating it 3.0.0 it is not working
This validation might have been introduced in the update.
but it working same location id on IOS app with version 3.0.0
Could you try updating to the latest version - 3.5.0 - to see if it solves the issue?
https://github.com/stripe/stripe-terminal-android/blob/master/CHANGELOG.md#350---2024-04-09
Ok. Could you please check the LOCATION_ID, and make sure it's non-empty?
I see a similar issue was fixed with 3.1.0: https://github.com/stripe/stripe-terminal-android/issues/377#issuecomment-1758205786
Happy to help.