#ash_code
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/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.
- ash_code, 22 hours ago, 24 messages
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
How did you build your app? Did you install these dependencies as outlined here: https://docs.stripe.com/terminal/features/apps-on-devices/build#add-dependencies
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?
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)
do you have the serial number?
Could you provide the code you are using?
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
We're digging into the logs now, can you provide a snippet of the relevant code?
we wrote a flutter plugin on top the android code, but the android code is here:
https://github.com/BreX900/mek-packages/tree/main/stripe_terminal
i can provide the payment intents for both of these
Hi
๐ we are still looking
I reached out yesterday but today its a diff issue
okay thanks
for the update
let me know about the handoff service
Sure thing, I'll circle back as soon as we have more info.
thank you so much, can u keep this conversation open?
Yep
okay
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?
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
Right but what SDK method are you attempting to run when you get that error?
but when I did the adb command, it did not list the Handoff service
after getConnectionToken it fails
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
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$
If you just did it a few minutes ago then that's okay
pm_1RWNegGdrZftB05e6sRbIe1N
this is the payment id
it shows as "uncaptured" on the dashboard
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?
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
If you set capture_method to manual then you'd need to capture the PaymentIntent server-side as shown in the doc - https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=android#capture-payment
Reader doesn't perform "capture"
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
Yes, as far as I can tell - the payment method collection succeeded for the PaymentIntent - pi_3RWNeJGdrZftB05e0rxQVUxN
Did the reader show failure?
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
That's because we didn't receive a request to capture the PaymentIntent from your server
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?
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.
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?
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
are u sure that devkit has the handoff service installedf
Service unexpectedly disconnected error.
how cani see if its a handoff mode
or reader mode
is there a reader mode that exists?
It's not a reader mode but a "connection" mode.
The handoff mode is used for Apps on Devices flow. So if you've built your own android application that uses handoff configuration for discovery and connection - https://docs.stripe.com/terminal/features/apps-on-devices/build#discover-and-connect-a-reader then you're working with "handoff" reader
oh okay i did use handoff configuration
thanks for the help today
greatly appreciate
NP! Sorry for the confusion earlier