#i'm a cyborg but that's okay
1 messages · Page 1 of 1 (latest)
Programmatically. My backend is in python.
new_subscription = stripe.Subscription.modify(
subscription.id,
payment_behavior='pending_if_incomplete',
proration_behavior='always_invoice',
items=[{
'price': price_key,
}]
)
So when you say "both subscriptions", do you mean both items?
Since you are using pending_if_incomplete you should see both pending updates as well as the current subscription item from pre-update
I guess. I have two products(lets say tier1 and tier2). Initially user is in tier1, and then they change to tier2(which basically runs the code above).
I see both the products listed in stripe's dashboard for a user.
Can you share an example Subscription ID?
And when you say "stripe's dashboard for a user", do you mean the Customer Portal?
Or your Stripe Account Dashboard
so is a demo name
sub_1LjnWySDvYNFndThPUdSPZeH
Thanks, looking
this is in testing mode btw
Is having the same email considered as same customer in stripe?
so, by default, this shouldn't happen, right?
I don't believe so, looking more though
I'll try to setup a fresh new email id and check
The email shouldn't matter
ah
Since the update was successful you should just see the new Price on the Sub
Checking with a colleague to see if I'm missing anything here
Otherwise seems like a bug to me
cool
Can you test for me whether the Sub's upcoming invoice via the API will include both Prices? You wold preview the upcoming invoice using https://stripe.com/docs/api/invoices/upcoming
Yeah
Thanks for testing
Getting confirmation that this is unexpected. There is a small chance that it is expected that the former Price doesn't drop off until the next cycle, but I don't really see why that would be the case (it isn't my understanding of how this should work)
alright. I'll mark it off as a rare thing. I'll try to test more(with clean slate). If I encounter the same thing, i'll put up an issue in this channel.
Thank you for the help.
Sure thing. If this is unexpected then I'll file a ticket internally to get it fixed
Thanks for reporting
@knotty lagoon okay actually I'm wrong
I totally missed that you aren't specifying the current Subscription item in your update
If you look at https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing you can see an example
aah