Dec 23, 2020
0
Level 2
Creating One time Plan using Stripe/Plan Facade
i want to create one time payment plan using Laravel/Plan Facade. i can create monthly, yearly plans but i don't know how to achieve one time payment plan as we can create one time payment plan when creating a product on stripe dashboard. below is my code for creating monthly, yearly, weekly or day but not lifetime/one-time payment.
$monthlyPlan = Stripe\Plan::create([
"product" => $stripeProduct->id,
"amount" => $request->input('amount_month'),
"interval" => 'month',
"currency" => $request->input('currency')
]);
$yearlyPlan = Stripe\Plan::create([
"product" => $stripeProduct->id,
"amount" => $request->input('amount_year'),
"interval" => 'year',
"currency" => $request->input('currency')
]);
Please or to participate in this conversation.