我正在用PHP构建条带支付网关,一切正常。但是我需要为将来的日期(用户选择)创建第一个订阅。当我提交详细信息时,它始终以当前日期开头。请帮忙......
我无法找到特定日期开始订阅的日期参数。请帮忙,以便我可以完成支付网关。
https://stripe.com/docs/api#subscriptions
$charge = \Stripe\Charge::create(array(
"amount" => 1,
"currency" => "usd",
"customer" => $stripe_custmerid,
"description" => $_SESSION['user_name']
));
$subscription = \Stripe\Subscription::create(array(
"customer" => $stripe_custmerid,
"plan" => $plan_id,
));