以条纹创建客户

public function createCustomer($data , $token)//pass form data and token id
{
    $customer=Customer::create(array(
    "email"=>$data['email'],
    "description" => $data['name'],
    "source" => $token // obtained with Stripe.js
    ));
    return $customer['id'];
}

有关更多信息,请点击此链接