#MY
1 messages · Page 1 of 1 (latest)
Hi
Could you please share more details about your integration? what terminal integration are you following exactly ?
hello, I'm trying to test Tap to pay on Android phone samsung galaxy S9 and I'm using
those packages:
// Stripe Terminal library
implementation "com.stripe:stripeterminal-localmobile:2.20.0"
implementation "com.stripe:stripeterminal-core:2.20.0"
You are getting this execption in which step ?
You are getting this failure, when proceeding a contactless payment transaction?
in this method
private val collectPaymentMethodCallback by lazy {
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
Terminal.getInstance().processPayment(paymentIntent, processPaymentCallback)
}
override fun onFailure(e: TerminalException) {
e.printStackTrace()
}
}
}
once I type the amonut and then the app should show the tap the card screen, but the app crash because of the onFailure method
Can you please share the complete stackstrace ?
on this step:
Collect payments with Tap to Pay on Android
When your application is ready to collect a payment, the Stripe Android SDK takes over the display to handle the collection process. After calling the collect payment method, your application remains running. The Android device displays a full-screen prompt to the cardholder, instructing them to present their card or NFC-based mobile wallet. If there’s an error reading the card, a prompt for retry displays. A successful presentation returns a success indication, and then control returns to your application to process the payment.
class=TerminalSession
com.stripe.stripeterminal.external.models.TerminalException: Contactless transaction failed com.stripe.core.aidlrpc.AidlRpcException: Failed to send request to AIDL server.
at com.stripe.stripeterminal.internal.common.adapter.CotsAdapter.callAidlWithExceptionConverted(CotsAdapter.kt:348)
at com.stripe.stripeterminal.internal.common.adapter.CotsAdapter.collectPaymentMethodHandler(CotsAdapter.kt:133)
at com.stripe.stripeterminal.internal.common.adapter.CotsAdapter.collectPaymentMethod(CotsAdapter.kt:125)
at com.stripe.stripeterminal.internal.common.adapter.ProxyAdapter.collectPaymentMethod(ProxyAdapter.kt:147)
at com.stripe.stripeterminal.internal.common.terminalsession.TerminalSession$CollectPaymentMethodOperation.executeIfNotCanceled(TerminalSession.kt:1172)
at com.stripe.stripeterminal.internal.common.terminalsession.TerminalSession$CancelableOperation.execute(TerminalSession.kt:947)
at com.stripe.stripeterminal.internal.common.terminalsession.TerminalSession$CancelableOperation.execute(TerminalSession.kt:947)
at com.stripe.stripeterminal.internal.common.terminalsession.TerminalSession$ExternalOperation.run$terminalsession_release(TerminalSession.kt:905)
at com.stripe.stripeterminal.internal.common.terminalsession.TerminalSession.enqueueOperation$lambda$3(TerminalSession.kt:765)
at com.stripe.stripeterminal.internal.common.terminalsession.TerminalSession.$r8$lambda$l3D1f-Vk5Q8NcJKxkmByt8wMjwc(Unknown Source:0)
at com.stripe.stripeterminal.internal.common.terminalsession.TerminalSession$$ExternalSyntheticLambda0.run(Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Ok according to the error message, it's a connectivity/network issue:
Could you try inspect the network/connectivity of that device?
the netwrok is working, because I can connect ty my store location and get the lcation id as well a PaymentIntent
Ok let me do a quick test...
Can you try reproducing on this sample tap to pay android demo?
https://github.com/stripe-samples/tap-to-pay-android-demo
this is the code I'm using for testing
the function I send before it's on 243 in MainActivity.kt
and this backend:
stripe/example-terminal-backend running on Render
So far, I'm not able to reproduce... trying to do more tests..
There must be something in your network that is blocking some request to AIDL server
Try another network
or another device.
ok, i'll test withother device