#magnus
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Do you mean allowing the customers to select from their saved payment methods?
Ah okay, I don't think the elements support this at the moment. You'd need to build your own UI for this.
Hmm, is there an API that can be used on the client side to request saved payment methods?
We don't have one for client-side unfortunately. Since it requires your Secret API key, you'd want to make this request via server-side.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yup
Awesome, thanks :)
And when I create a PaymentIntent (which I assume is for one-time payments), I can pass the exact same payment method ID?
I believe so, you'd likely need to pass off_session: true if the customer isn't around to perform authentication
Otherwise, it might prompt for 3DS
Right, but if off_session is false, the API would return the link to the 3DS prompt?
Or do I need to use stripe.js and pass the client secret?
If you're using Stripe.js then it should handle 3DS automatically.
If you want to opt for manual route then you can follow the flow here
https://stripe.com/docs/payments/3d-secure#when-to-use-3d-secure
I think I understand it now. Thanks :)
NP! ๐ Happy to help