#gaz_api
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/1332146712021565511
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
how do i find the developer log in dashboard?
Hi ๐
I think thats https://dashboard.stripe.com/test/dashboard/developer/logs
and hello btw ๐
hmm it just brings me back to dashboard
ive started getting this error Must have a country code to connect to a Tap to Pay reader
When is that error thrown?
when i call this Terminal.getInstance().connectLocalMobileReader(reader, config, object : ReaderCallback {
override fun onFailure(e: TerminalException) {
pretty sure it was even happening this morning, but i have tweaked it since client had issues
checking my changes
I'm taking a look at my test integration too
thanks, we have had a nightmare getting this to work
seems ok on my s22 but not on his s24
and this country code thing now stops it working on mine
Hmmm ... ๐ค
I wonder if all the necessary permissions were accepted on that device
should be we checked, not sure what i did but it worked few hrs ago lol
but im hecking change si dont see much
i wanted to be able to skip always discovering readers after first time as its slow
but ill try get my code to working again
Okay what does the config object look like in this call?
Here is what I've got
val config = ConnectionConfiguration.LocalMobileConnectionConfiguration(
Config.LOCATION,
autoReconnectOnUnexpectedDisconnect = true,
localMobileReaderReconnectionListener = localMobileReaderReconnectionListener
)
val config = DiscoveryConfiguration(
timeout = 0,
discoveryMethod = DiscoveryMethod.LOCAL_MOBILE,
isSimulated = false,
location = mutableListState.value.locations[0].id
)
That Config.LOCATION maps to a Terminal Location ID tml_XXXX
This is a Location object I created https://docs.stripe.com/api/terminal/locations/object
Oh okay no the location needs to be a Termial Location object ID
strange I would expect that to fail
pretty sure its ripped from the ofificial kotlin example
Creating a location record is the first step in our "Connect to a reader" guide for TTP:
https://docs.stripe.com/terminal/payments/connect-reader?terminal-sdk-platform=android&reader-type=tap-to-pay#create-location
If your business requires you to move your readers frequently, your locations can use an address that represents your primary place of business.
I made mine pretty generic
sorry, trying to get to my original working state
should haveb acked it up
hmm
ill roll back to previous ones and try again
and somehow itll work i think
If not I recommend reviewing our canonical integration guide. I do realize we've updated the code to match our latest version so not all the classes are going to be correct if you're on an earlier version (like me).
well its annoying because it works fine for me
he got the error discoverablereaders must becalled before collectpayment method
so i was just trying to see why
Gotcha
ok restored original files form github that did work
first time ive ever had to do that in my life lol
ok that code does work i see the credit card screen etc
even with that config code
Okay, just be aware that it may not continue to work especially if you update the stripe dependencies.
right
hmm looks like i called ode in requestPermissionsIfNecessarySdk31
hmm yeh i cant even find the code i based mine on
looks like i used https://github.com/stripe-samples/tap-to-pay-android-demo
i mean i defdinitely did
Hi @chilly pollen I'm taking over this thread
hi jack
trying to work out why my client gets the error discoverablereaders must becalled before collectpayment method, but it doesnt happen to me
You can get the latest example code from https://github.com/stripe/stripe-terminal-android/tree/master/Example
Have you tried it out?
Do you have your client's code?
unfortunately i used different code
the one i linekd above
dont have time to rewrite it
he is running an apk i send him
OK, and did you put some logs to confirm that discoverablereaders is indeed called before collectpayment method ?
yeh i guess this is pointless until i can see his logcat
Yes, you should ask for it to start the troubleshooting.
hes online getting it now
also where can i see the log on the stripe dashboard of the requests
been trying to find it for ages
I'm talking about the applicaiton log that you wrote to confirm the invocation of discoverablereaders and collectpaymentmethod
yes i know
but i also want to see if his requests fail
forcing some different flow of logic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.