为未来日期添加条带支付网关订阅

时间:2016-12-03 23:07:38

标签: php stripe-payments

我正在用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,
));

0 个答案:

没有答案