#gaz_api

1 messages ยท Page 1 of 1 (latest)

feral rockBOT
#

๐Ÿ‘‹ 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.

chilly pollen
#

how do i find the developer log in dashboard?

pliant socket
#

Hi ๐Ÿ‘‹

I think thats https://dashboard.stripe.com/test/dashboard/developer/logs

chilly pollen
#

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

pliant socket
#

When is that error thrown?

chilly pollen
#

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

pliant socket
#

I'm taking a look at my test integration too

chilly pollen
#

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

pliant socket
#

Hmmm ... ๐Ÿค”

I wonder if all the necessary permissions were accepted on that device

chilly pollen
#

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

pliant socket
#

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
        )
chilly pollen
#

val config = DiscoveryConfiguration(
timeout = 0,
discoveryMethod = DiscoveryMethod.LOCAL_MOBILE,
isSimulated = false,
location = mutableListState.value.locations[0].id
)

pliant socket
#

Oh okay no the location needs to be a Termial Location object ID

chilly pollen
#

hmm

#

tis worked earlier and i havent even changed that

pliant socket
#

strange I would expect that to fail

chilly pollen
#

pretty sure its ripped from the ofificial kotlin example

pliant socket
#

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

chilly pollen
#

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

pliant socket
chilly pollen
#

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

pliant socket
#

Gotcha

chilly pollen
#

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

feral rockBOT
pliant socket
#

Okay, just be aware that it may not continue to work especially if you update the stripe dependencies.

chilly pollen
#

right

#

hmm looks like i called ode in requestPermissionsIfNecessarySdk31

#

hmm yeh i cant even find the code i based mine on

#

i mean i defdinitely did

feral rockBOT
acoustic karma
#

Hi @chilly pollen I'm taking over this thread

chilly pollen
#

hi jack

#

trying to work out why my client gets the error discoverablereaders must becalled before collectpayment method, but it doesnt happen to me

acoustic karma
#

Have you tried it out?

acoustic karma
chilly pollen
#

unfortunately i used different code

#

the one i linekd above

#

dont have time to rewrite it

#

he is running an apk i send him

acoustic karma
#

OK, and did you put some logs to confirm that discoverablereaders is indeed called before collectpayment method ?

chilly pollen
#

yeh i guess this is pointless until i can see his logcat

acoustic karma
#

Yes, you should ask for it to start the troubleshooting.

chilly pollen
#

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

acoustic karma
#

I'm talking about the applicaiton log that you wrote to confirm the invocation of discoverablereaders and collectpaymentmethod

chilly pollen
#

yes i know

#

but i also want to see if his requests fail

#

forcing some different flow of logic

acoustic karma