#ranjeetchouhan-android
1 messages · Page 1 of 1 (latest)
Hi! How are you implementing Stripe? With the PaymentSheet? And is your question about iOS, Android, or both?
Android. PaymentIntent is being created on Server end. I need to show authentication ui for 3DS card on App end.
And how are you implementing Stripe? With the Paymentsheet (also known as the "Mobile Payment Element")? https://stripe.com/docs/payments/accept-a-payment?platform=android
What is use of confirmPayment(clientSecret,confirmPaymentIntentParams)
stripe = Stripe(this, publishableKey!!)
paymentSession = PaymentSession(
requireActivity(),
createPaymentSessionConfig()
)
paymentSession?.init(createPaymentSessionListener())
PaymentMethodsActivityStarter(requireActivity())
.startForResult(
PaymentMethodsActivityStarter.Args.Builder()
.build()
)
Got it, so you are using this integration: https://stripe.com/docs/mobile/android/basic
So yes you need to call confirmPayment to show the 3DS flow. What exactly is the issue? Do you see an error message?
“We are passing a paymentMethodToken to our backend who is then creating a payment intent via the connect api. Once that payment is created, we are trying to confirm payment intents that are marked “incomplete” by calling the Stripe.confirmPayment() method. On ios the ui is automatically showing in a web view. In android, we are getting use_stripe_sdk/redirect_url”
we are getting use_stripe_sdk/redirect_url
Can you calrify this part? What is the exact error message you see? And can you share a PaymentIntent ID that had this issue?
Payment Failed The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again.
Getting Status RequireAction in case of Complete button clicked in 3DS webview
Thanks! And can you share the PaymentIntent ID?
Sure. Also when i clicked on Complete button in #DS Webview and callback is returning me RequiresCapture