#magnus

1 messages ยท Page 1 of 1 (latest)

serene coralBOT
uneven thicket
#

Hello ๐Ÿ‘‹
Do you mean allowing the customers to select from their saved payment methods?

stark wagon
#

Yeah, correct

#

For selecting which card to use for off-session payments

uneven thicket
#

Ah okay, I don't think the elements support this at the moment. You'd need to build your own UI for this.

stark wagon
#

Hmm, is there an API that can be used on the client side to request saved payment methods?

uneven thicket
#

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.

stark wagon
uneven thicket
#

Yup

stark wagon
#

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?

uneven thicket
#

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

stark wagon
#

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?

uneven thicket
stark wagon
#

I think I understand it now. Thanks :)

uneven thicket
#

NP! ๐Ÿ™‚ Happy to help