Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Naveed Ali's avatar

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')
        ]);
0 likes
0 replies

Please or to participate in this conversation.