how to save card details without making payment on stripe?

Viewed 37

I want to save customer's card details and use them for future usage. I am asking the users to enter the card details, For that I am creating a customer on stripe, then creating a setup intent using stripe.setupIntents.create(). and I have created stripe elements using stripe.elements() Now I want to save the card, so which method or api is used to save the card-details on stripe?

I have gone throgh the docs but coul not find a proper way Can anyody tell me what to do next?

1 Answers

I used the method

           setupIntent.client_secret, {
            payment_method: {
                card: card,
                billing_details: {
                    name: "name"
                }
            }
Related