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

ShamiCanCode's avatar

Laravel Stripe

Error: Stripe\Exception\InvalidRequestException You must pass in an existing product ID into product.

While updating the plan in Stripe Plan

Code: Plan::update($plan->plan_id, [ 'amount' => $req->price * 100, 'currency' => "usd", 'interval' => $req->billingPeriod, 'product' => [ 'name' => $req->name, ] ]);

0 likes
0 replies

Please or to participate in this conversation.