以條紋建立客戶

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'];
}

有關更多資訊,請點選此連結