#parth_33835

1 messages · Page 1 of 1 (latest)

languid iglooBOT
pure ice
#

Hi 👋

How are you creating the Subscription? You say you set it for 7 montly iterations but what is the end behavior?

tawny heath
#

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)

pure ice
#

Onay and where are you wanting to see the end date listed?

tawny heath
#

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

pure ice
#

pn the strip web portal for our customer support people

I don't know what you mean by this

tawny heath
#

dashboard.stripe.com after login and looking up the user to see they are currently subscribed with how many iterations of subscription

pure ice
#

We don't currently show that. We only show when the eventual end date is

tawny heath
#

I see no worries, I can write some code to inform the customer support people

#

thanks for the update

pure ice
#

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.

tawny heath
#

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

pure ice
#

I have filed the request. Let me know what you have written in to Support

languid iglooBOT