0

I am creating a subscription system in Stripe, in the web app users can open the Stripe customer portal and see their subscription. I open the portal like this:

$router->post('create-customer-portal-session', function (Request  $request) use ($router) {

        $returnUrl = env('CANCEL_URL');
        //SECRET KEY
        $stripe = new StripeClient(env('STRIPE_SECRET_KEY'));

        $session = $stripe->billingPortal->sessions->create([
            'customer' => $request->customer_id,
            'return_url' => $returnUrl,
        ]);

        return redirect($session->url);
    });

That all works fine, but sometimes some prorations with subscription can happen and the customer portal is not showing the price with prorations only the basic price. I contacted Stripe support and i got the answer:

"Upon further checking, I was able to confirm that proration will not show on the customer portal. It is one of the limitation of customer portal's functionality."

Considering that this is very limiting, does anybody know of a workaround or something similar that could be used to achieve this? Like somehow updating the line item prices for showing in the portal or something like that?

Shile
  • 1,063
  • 3
  • 13
  • 30
  • Can you provide a precise example scenario one could reproduce to illustrate what you're trying to do? ie, what are the steps to set up the customer, prices & subscriptions? When/where would you expect to see a prorated amount that you do not? – Nolan H Feb 22 '23 at 17:13

0 Answers0