#DaveInTO

1 messages ยท Page 1 of 1 (latest)

woven totemBOT
wet mountain
#

Let's chat here ๐Ÿ‘‹

supple dawn
#

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]]);

wet mountain
#

Are you following any docs for this? If so, can you share a link?

Can you share an example subscription ID? (sub_xxx)

supple dawn
#

sub_1NNH5YEbjufZaAwgC8LhCifr

woven totemBOT
supple dawn
#

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

hybrid star
#

Hi ๐Ÿ‘‹

I'm taking over as @wet mountain has to go

supple dawn
#

sure thing..thanks!

hybrid star
#

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?

supple dawn
#

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.

hybrid star
#

Okay so these are upgrades to their existing Subscriptiion

supple dawn
#

yeah

#

new items.

hybrid star
#

And so why does the proration approach not work for you?

supple dawn
#

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?

hybrid star
#

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.

supple dawn
#

Ah..thanks!

#

looks like what i was doing was working..just wasnt reading it correctly

hybrid star
#

Great ๐ŸŽ‰ Happy to hear it ๐Ÿ™‚

supple dawn
#

have a great day