ectoflow / vue-stripe-elements

A Vue 2 component collection for Stripe.js
MIT License
530 stars 124 forks source link

How to include Card Holder name? #112

Closed jamols09 closed 3 years ago

jamols09 commented 4 years ago

I've noticed that there are multiple components that I can call but I was wondering if card holder name can also be included ? How do I implement it?

riteshjha commented 4 years ago

you can pass like this

 createPaymentMethod('card', {billing_details: { name: "User Name" }})
            .then(data => {
                console.log(data);
            })
            .catch(error => {
                console.log(error);
            });

 createToken({billing_details: { name: "User Name"}})
           .then(data => {
                console.log(data);
            })
            .catch(error => {
                console.log(error);
            })