当我创建订阅时,我给了一个自定义的billing_cycle_anchor起作用了,但计划的金额却被打乱了,我给了2995美元,但是当我通过条纹仪表板时,给了我1995年的订阅额
$plan = \Stripe\Plan::create([
"amount" => 2995,
"interval" => "year",
"product" => [
"name" => $_POST['plan_name']
],
'nickname' => $_POST['plan_name'],
"currency" => "usd",
"id" => $product->id
]);
$subscription = \Stripe\Subscription::create([
"customer" => $customer->id,
"items" => [
[
"plan" => $plan->id,
],
],
'billing_cycle_anchor' => $billing_cycle_anchor, //01-01-2020
'prorate' => true,
]);
}