#alison_alison
1 messages · Page 1 of 1 (latest)
Get the data from the CardInputWidget from the xml -> create a payment method intent for the clientSecret, then Stripe.createPaymentMethod with the data.
I confirm the payment method with Stripe.confirmSetupIntent which returns a status of "requires_action" and the next action data is use Use3DS2.
I was thinking the 3D secure would show up somewhere so far but it hasn't, so I do a check if the next action data is Use3DS2 I copied the code from this link https://stripe.com/docs/payments/3d-secure but I still get nothing
Only PaymentSheet integrations support automatic 3DS flow
You'd need to follow the insturctions here since you use CardInputWidget
https://stripe.com/docs/payments/3d-secure?platform=android#when-to-use-3d-secure
let me know if that makes sense @light socket
Sorry I was testing stuff out, basically copied the code provided there and since I know that
if (nextAction is StripeIntent.NextActionData.SdkData.Use3DS2)
I call that code but I still don't see the 3DS2 flow :/
Maybe my whole implementation is wrong since I'm kinda new to android development and it can't be done from the viewModel
Is there a specific reason you chose CardInputWidget over PaymentSheet?
Asking as PaymentSheet handles these things automatically and is relatively easier to handle
I think just for the custom ui, as we let users add cards before they make a payment.
PaymentSheet does support just saving cards too (without needing to make a payment)
https://stripe.com/docs/payments/save-and-reuse?platform=android&ui=payment-sheet
also seems like we do have some steps outlined here on how you can handle authentication
https://stripe.com/docs/payments/save-during-payment-cards-only?platform=android#android-check-status
thanks @weary brook , I'll look into this