我正在尝试这个...
$customer = Stripe_Customer::create(array(
"card" => $token,
"plan" => "gold",
"email" => "payinguser@example.com")
);
但到目前为止没有运气。
答案 0 :(得分:0)
这是正确的:现在保持$customer->id.
然后你可以像这样收费:
$charge = Stripe_Charge::create(array(
"amount" => $total, // amount in cents, again
"currency" => "usd",
"customer" => $customer->id,
"description" => "My Charge")
);