#ash_code

1 messages ยท Page 1 of 1 (latest)

grave starBOT
#

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

๐Ÿ“ 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.

ocean merlin
#

Hello

#

I am using an S700 devkit device. I was able to do one successful payment and all subsequent transactions fail. I got to know that the first payment is via Reader Mode but not via Handoff Mode, I checked adb command which tells that there is no handoff service installed on the device. How do i do that?

#

Do you provide an apk usually for handoff service to install it on S700 devkit device?

#

pls confirm

serene fiber
ocean merlin
#

dependencies {
implementation "com.stripe:stripeterminal-taptopay:4.1.0"
implementation "com.stripe:stripeterminal-core:4.2.0"
implementation("com.stripe:stripeterminal-handoffclient:4.2.0")
}

#

these are the dependencies i have

#

and i dont want to upgrad

#

is there an apk or a way to install handoff service on s700 devkit? is my finding correct?

serene fiber
#

Checking with a team who is more familiar with the s700 devkit.

#

Are you sure it's the devkit (should have a sticker on the back indicating)

ocean merlin
#

yes it is

#

it says Devkit

serene fiber
#

do you have the serial number?
Could you provide the code you are using?

ocean merlin
#

Serial no: SDR70Z1C335000065

#

can u pls redirect me to s700 team ?

#

I checked adb command, and it says thus device doesnt have handoff service installed

serene fiber
#

We're digging into the logs now, can you provide a snippet of the relevant code?

ocean merlin
#

i can provide the payment intents for both of these

grave starBOT
ocean merlin
#

Hi

earnest plover
#

๐Ÿ‘‹ we are still looking

ocean merlin
#

I reached out yesterday but today its a diff issue

#

okay thanks

#

for the update

#

let me know about the handoff service

earnest plover
#

Sure thing, I'll circle back as soon as we have more info.

ocean merlin
#

thank you so much, can u keep this conversation open?

earnest plover
#

Yep

ocean merlin
#

okay

toxic spindle
#

Hello ๐Ÿ‘‹
Jumping in to help out here..

Devkits are preconfigured with the necessary dependencies to work in handoff mode.
Looking at our logs for the serial number you've provided, I'm seeing SDK completing the connectReader call successfully.

When exactly are you seeing the error in your logs?

ocean merlin
#

wait a moment

#

Uncaught exception in binary message listener
com.stripe.stripeterminal.external.models.TerminalException: Service unexpectedly disconnected
at com.stripe.stripeterminal.handoffclient.HandoffRpcClient.withTranslatedExceptions(HandoffRpcClient.kt:85 com.stripe.stripeterminal.handoffclient.HandoffRpcClient.makeRequest(HandoffRpcClient.kt:56)

#

this is what I see

toxic spindle
#

Right but what SDK method are you attempting to run when you get that error?

ocean merlin
#

but when I did the adb command, it did not list the Handoff service

#

after getConnectionToken it fails

toxic spindle
#

Can you share the snippet of the code your integration tries to invoke?

#

also if you're able to run a quick test that returns the error then I'm happy to pull latest logs and take a look

ocean merlin
#

after i do a transaction i disconnnect from the reader, and then i again initialise the terminal

#

yes i just did

#

2 mins ago

#

do u want me to do it again

#

i tried to do a payment for 246$

toxic spindle
#

If you just did it a few minutes ago then that's okay

ocean merlin
#

pm_1RWNegGdrZftB05e6sRbIe1N

#

this is the payment id

#

it shows as "uncaptured" on the dashboard

toxic spindle
#

Sorry, I'm not sure what you mean.

How did you process the payment if you're getting an error when you try to connect to the handoff reader?

ocean merlin
#

no no i dont have problems connecting to the reader

#

i have problems making a payment on the reader

#

when i make 1st payment it gets successful, but the other payments after the 1 st one fails, and it shows as "Uncaptured" on stripe dasboard under transactions

toxic spindle
ocean merlin
#

yes we do have that on the server side

#

we implemented the payment captures on the server side

#

and capture method is also set to manual

#

u can verify that with other transcations made

toxic spindle
#

Yes, as far as I can tell - the payment method collection succeeded for the PaymentIntent - pi_3RWNeJGdrZftB05e0rxQVUxN

Did the reader show failure?

ocean merlin
#

on stripe dashboard for this payment intent, it says this on the Stripe transactions "Payment authorized, but not yet captured"

#

payment intent is getting generated

#

but the payment is not being cpatured

toxic spindle
#

That's because we didn't receive a request to capture the PaymentIntent from your server

ocean merlin
#

so when we do a payment, 1st we do a auth and then a payment/capture call

#

"That's because we didn't receive a request to capture the PaymentIntent from your server" , so u r not receiving the payment intent?

toxic spindle
#

We received the payment method information from the reader and SDK confirmed the PaymentIntent but the request to capture the PaymentIntent which should've come from your server, didn't come.

So you probably want to look into what triggers that request and why it didn't work in this case.

ocean merlin
#

okay

#

but i do have one concern

grave starBOT
ocean merlin
#

we are doing the same process for M2 readers, when we do a direct payment, we do an auth and then do a payment capture call, if you are saying that the process is not getting completed fully, it should fail for M2 reader transactions too which is not the case. So could you tell me on why its the case with S700?

#

like any guesses or possible reasons?

toxic spindle
#

I dont' have your complete code so I don't know what your integration does when confirmPaymentIntent succeeds.

You can add more logging into the function that runs that SDK function and see if anything there is failing

ocean merlin
#

are u sure that devkit has the handoff service installedf

toxic spindle
#

Yes

#

Because your other payments are succeeding in handoff mode

ocean merlin
#

Service unexpectedly disconnected error.

#

how cani see if its a handoff mode

#

or reader mode

#

is there a reader mode that exists?

toxic spindle
ocean merlin
#

oh okay i did use handoff configuration

#

thanks for the help today

#

greatly appreciate

toxic spindle
#

NP! Sorry for the confusion earlier

ocean merlin
#

wiill reach out to you once i analsye

#

thannks so much