客户创建条纹?

时间:2013-12-27 05:30:55

标签: stripe-payments

我正在尝试这个...

$customer = Stripe_Customer::create(array(
   "card" => $token,
   "plan" => "gold",
   "email" => "payinguser@example.com")
);

但到目前为止没有运气。

1 个答案:

答案 0 :(得分:0)

这是正确的:现在保持$customer->id.然后你可以像这样收费:

$charge = Stripe_Charge::create(array(
          "amount" => $total, // amount in cents, again
          "currency" => "usd",
          "customer" => $customer->id,
          "description" => "My Charge")
        );