Stripe: error attaching cardholder name to source


Hi everybody, I’m trying to attach the name of the cardholder to a newly created source with stripe’s elements.js.

However when I submit my form I get the following error:

Received unknown parameter: name

I attach an object with that info in the createSource function, like this:

$('#payment-form').submit(function(e) {

        stripe.createSource(cardNumberElement, { name: self.cardHolder }).then(function(result) {
            if (result.error) {
                self.cardErrors = result.error.message;
            else {

Is there any other way to store cardholder name into sources?


Is this related to Vue in any way?