#DaveInTO
1 messages ยท Page 1 of 1 (latest)
Let's chat here ๐
I then add items to the subscription. LIike 1TB addtional of monthly storage..
but these items end up stuck in Pending Invoicing
instead of just charging the user the additional item cost.
subscriptions->create(['customer'=>$customerID,'collection_method'=>'charge_automatically','backdate_start_date'=>strtotime("midnight first day of this month"),'proration_behavior'=>'none','metadata'=>['platformuserid'=>$callerUserID],'items'=>[['price'=>$subscription]],'automatic_tax' => ['enabled' => true]]);
Are you following any docs for this? If so, can you share a link?
Can you share an example subscription ID? (sub_xxx)
sub_1NNH5YEbjufZaAwgC8LhCifr
If i alter the proration_behavior it kinda works..but the invoice ends up with some weird calculations
Ideally i dont want any proration.. if i buy on the first or on the 30th it should be 6.99$ for that item
Hi ๐
I'm taking over as @wet mountain has to go
sure thing..thanks!
Can you clarify why you are trying to add items to the subscription? Are these charges you want to be part of the initial invoice?
we have a plaform, and there's the free version..
or they can upgrade to the paid version.. (subscription)
but the paid version they might want to add on more limits.
Okay so these are upgrades to their existing Subscriptiion
And so why does the proration approach not work for you?
the invoice i see in Stripe isn'tt making any sense to me i guess
I guess that invoice is correct just the line items aren't clear
guess i should just take that data and show the user only what they need to see
or when i do add it. they get charged twice?
When you update the subscription and change the items we first credit the customer for the unused time for the items they lose, then we charge them a prorated amount for the time on the new prices.
We mention how this works here: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
Ah..thanks!
looks like what i was doing was working..just wasnt reading it correctly
Great ๐ Happy to hear it ๐
have a great day