#thiagomacauba88_api

1 messages ยท Page 1 of 1 (latest)

silent pewterBOT
icy flaxBOT
#

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.

silent pewterBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255611158568636486

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

violet merlin
#

Hello

#

Can you provide more information

warped dew
#

hey

#

1 sec

#

I'm stuck on this

#

when I test ttp on android

#

i was talking to another person yesterday

#

and he asked my readerId = e5511944-b839-4b8a-9705-4c5da203ed23 (this one is for now)

violet merlin
#

Okay and what error do you see exactly?

#

Or there is no error?

#

And it is just frozen on that screen?

warped dew
#

yep no error:

violet merlin
#

Can you show me your client-side code here?

warped dew
#

you mean the payment method?

violet merlin
#

No I mean your client-side code for your Tap to Pay integration

#

Or are you working with a third party here?

#

I see some reference to "chargestripe" in your logs

warped dew
#

chargestripe is our project

#

this is the ttp fragment, we are connecting in this fragment and we are doing the payment in another one

#

but if something was wrong to connect... i shouldn't see the TTP screen... or am i wrong?

violet merlin
#

Most likely

#

However if there was a disconnection issue or something then that could be the culprit

#

Hard to say exactly

#

But yeah if you can share your payment method collection code that would certainly be helpful

warped dew
#

this class is kind of a mess right now, a lot of things going on here.... but maybe you have a guess

violet merlin
#

While I look, you said e5511944-b839-4b8a-9705-4c5da203ed23 was a serial ID?

#

Can you reproduce with that phone right now?

#

Then I can also look at our internal logs

warped dew
#

sure

#

yep

#

let me test again

violet merlin
#

Thanks

warped dew
#

just tried

violet merlin
#

Also have you tried on any other device?

warped dew
#

yep, i don't have another device right now... but another person tried using a pixel 4

#

and the result was the same

#

what about your logs?

violet merlin
#

I'm seeing that the payment method collection was canceled

warped dew
#

1 sec

#

what i have is this:

#

Terminal.getInstance().collectPaymentMethod(
paymentIntent,
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
processPayment(paymentIntent)
}

                                override fun onFailure(exception: TerminalException) {
                                    runOnUiThread {
                                        context?.toast(exception.errorMessage)
                                        lottieLoading.visibility = View.GONE
                                    }
                                }
                            })
#

let me put a breakpoint and check if what i have again

violet merlin
#

And nowhere do you use that cancelable variable?

#

Ah you aren't setting a cancelable at all...

warped dew
#

yep

#

not for collectPayment

#

Terminal.getInstance().retrievePaymentIntent() it's working

#

but Terminal.getInstance().collectPaymentMethod(

#

i dont have any feeddback

violet merlin
#

What version of the Terminal Android SDK are you using?

warped dew
#

implementation "com.stripe:stripeterminal:2.21.1"

#

implementation "com.stripe:stripeterminal-localmobile:2.21.1"

violet merlin
#

Hmmm that's pretty old

warped dew
#

if i jump to the latest i'll need to rebuild a lot of things :/

violet merlin
#

This is definitely weird -- the only thing I see from our internal logs is that you call collectPaymentMethod() and then that request is immediately canceled

warped dew
#

any reason for the cancel?

#

Terminal.getInstance().retrievePaymentIntent(
clientSecret,
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
Terminal.getInstance().collectPaymentMethod(
paymentIntent,
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
processPayment(paymentIntent)
}

                                override fun onFailure(exception: TerminalException) {
                                    runOnUiThread {
                                        context?.toast(exception.errorMessage)
                                        lottieLoading.visibility = View.GONE
                                    }
                                }
                            })
                    }

                    override fun onFailure(exception: TerminalException) {
                        runOnUiThread {
                            context?.toast(exception.errorMessage)
                            lottieLoading.visibility = View.GONE
                        }
                    }
                })
#

should be work ๐Ÿ˜ฆ

violet merlin
#

Yeah not seeing any further explanation in the logs

#

Let me ask a teammate for a second pair of eyes

warped dew
#

thanks

silent pewterBOT
warped dew
#

hey @kindred wadi do you have any ideas?

kindred wadi
#

Apologies for the wait. I'm catching up on the thread and I have another more experienced mobile dev to assist. I'll circle back when I have more info

#

@warped dew can you try upgrading your SDK version and see if that resolves the issue? It looks like you're on 2.21.0 which is pretty old

warped dew
#

well i cant go to much further, i tried 3.6 but i need to refactor the whole app

#

what version do you suggest?

kindred wadi
#

The latest version is ideal. We're not sure what's causing the hang up at this point, so upgrading the version is the last step before we escalate to the product eng team (who is going to tell you to upgrade anyway).

warped dew
#

where can i get the list of versions? github?

kindred wadi
warped dew
#

ok

#

com.stripe:stripeterminal
com.stripe:stripeterminal-localmobile

#

should be the same version

#

right?

kindred wadi
#

yes

warped dew
#

Ok
So i always have both

#

Right?

kindred wadi
#

I believe so, yes

#

As long as you're using TTP