#parth_33835
1 messages · Page 1 of 1 (latest)
Hi 👋
How are you creating the Subscription? You say you set it for 7 montly iterations but what is the end behavior?
end behavior is to remove them from the subscription. let me share the code
def updateSubscriptionInterval(customerId, subscriptionId): stripe.api_key = constants.ACTIVE_STRIPE_KEY try: schedule = stripe.SubscriptionSchedule.create( from_subscription=subscriptionId, ) update_phase = schedule.phases[0] update_phase.pop('end_date') update_phase.iterations = 3 updateSchedule = stripe.SubscriptionSchedule.modify(schedule.id, phases=[update_phase], end_behavior='cancel') print("Updated stripe to 3 months only") if(updateSchedule): print(updateSchedule) return {"Success": "Stripe Subscription Updated to 3 months"} except Exception as e: print("error", e) return str(e)
Onay and where are you wanting to see the end date listed?
on the strip web portal for our customer support people
I see the subscription, and I see when the next payment will be collected but nothing about the iterations. Unless I m missing something
pn the strip web portal for our customer support people
I don't know what you mean by this
dashboard.stripe.com after login and looking up the user to see they are currently subscribed with how many iterations of subscription
We don't currently show that. We only show when the eventual end date is
I see no worries, I can write some code to inform the customer support people
thanks for the update
I can also make a feature request for this
I have filed that feature request. I cannot make any promise of if/when it will get actioned but if you want to be updated about it you can write in to Support. https://support.stripe.com/contact
Let me know when you do and use my screen name and I'll make sure you get updated.
please if you can that would be great
just seeing the iterations would help alot since sometimes the end date could be very much in the future
I have filed the request. Let me know what you have written in to Support