创建客户时在卡上划掉名称


Stripe name on card when creating customer

使用stripe/stepe php,我有以下代码来创建一个带卡的新stripe客户。

//CREATE NEW STRIPE CUSTOMER
$stripe_customer = Stripe_Customer::create(array(
    "source"            => Input::get('stripeToken'),
    "email"             => $this->user->email
));

我想为卡添加一个名称属性,如何修改我现有的代码来做到这一点?

我没有修改上面的代码,而是简单地将"name"键和关联值添加到创建stripe令牌时使用的数组中。