#.n0tnull
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- .n0tnull, 16 hours ago, 4 messages
I am trying to implement the card setup with validation.
I tried using stripe.confirmSetupIntent but the validation never happens.
If I use the PaymentLauncher (which is incompatible with my architecture), I have the validation but the credit card token (pm_) is not accessible in case of success.
what guide are you following?
are you following this guide https://stripe.com/docs/payments/save-and-reuse
I can't use the PaymentSheet as I have my own UI
Hey! Taking over for my colleague. When you say that you have your own UI, you mean you collect the card details using your own forms ?
Yes
Are you PCI - DSS compliant ?
I have no idea, so probably not
I am not storing these card info, only sending them to Stripe.
As I would with any widget or view...
you can only if you are Pci dss otherwise you need to use strope widgets (e.g. payment sheet)
But I can access these payment info via your elements too... ๐ค
how?
It's still a view that I have access too, no?
So I can't use my custom UI that I have been using for the past 4 years (with one being with Stripe) ?
(with one being with Stripe) ?
what you mean by this ?
Your CardInputWidget is not OK to use ?
So how can I setup a card validation after the user entered his card into your widget ?
That's exactly what I was testing. But when I would need the payment token ("pm_") which I can't get with this method ๐ฌ
The info is in the InternalPaymentResult but lost in the final PaymentResult
What you mean by it got lost ?
PaymentLauncher.InternalPaymentResultCallback {
return PaymentLauncher.InternalPaymentResultCallback { result ->
when (result) {
is InternalPaymentResult.Completed -> onPaymentResult(PaymentResult.Completed)
is InternalPaymentResult.Failed -> onPaymentResult(PaymentResult.Failed(result.throwable))
is InternalPaymentResult.Canceled -> onPaymentResult(PaymentResult.Canceled)
}
}
}```
Do you mean on the backend ?
Yes
So instead of sending the card token (pm_) to the backend, I will send them the secret for them to retrieve the card token ?
No what I meant, you confirm the setup intent
the way the activity I shared with you
and once the Setupintent is confirmed
you can get the pm_1234 from the SetupIntent object
you can make an API call from the backend and get the Setupintent details by id https://stripe.com/docs/api/setup_intents/retrieve
So on the app, I need to make the validation, then make an API call to Stripe then an API call to my backend with the token?
Is there any reason why we don't have direct access to this token via your Android SDK while it is possible on iOS?