#alexelba
1 messages · Page 1 of 1 (latest)
Hello alexelba, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• alexelba, 13 hours ago, 11 messages
• alexelba, 19 hours ago, 3 messages
• alexelba, 22 hours ago, 5 messages
• alexelba, 23 hours ago, 31 messages
• alexelba, 1 day ago, 9 messages
@shadow stone let's chat here!
Adding your other message from the main channel:
$stripe_subscription = \Stripe\Subscription::retrieve($accountMembership->vendor_subscription_id);
foreach ($stripe_subscription->items->data as $item) {
$item->quantity = 100;
}
$invoice = \Stripe\Invoice::create(['customer' => $stripe_subscription->customer]);
$invoice->finalizeInvoice();
$stripe_subscription->save();
sure
Can you log the value of stripe_subscription?
Also, why are you creating a new Invoice as well? Can you share more details about what exactly you're trying to achieve?
I just want to update seat count
sure one sec
why creating invoice just want to send it over after update for prorated
and charge the card
So it looks like you're not actually making a call to update the subscription: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing
You'll want to make an update request and pass the item ID and the new quantity
how about https://stripe.com/docs/api/subscription_items/update will this do the same thing?
Hello! I'm taking over and catching up...