#soumya

1 messages ยท Page 1 of 1 (latest)

pallid axleBOT
upper crane
#

hello! you can use Subscription Schedules to schedule a price update at the end of the billing period instead : https://stripe.com/docs/billing/subscriptions/subscription-schedules
in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
you'll want to create a Subscription Schedule from an existing Subscription first, then update the Subscription schedule to make the changes you want

Learn how to use subscription schedules to automate changes to subscriptions over time.

Learn how to move Billing objects through time in test mode.

outer oar
#

if i have already a subscription active we need to create shcedules from that?

upper crane
#

yes, that's correct

outer oar
#

but here how can we make it dynamic basically i want to start the newly subscribed plan after the cancelled plan expires so when do we need to add schedule in this case

upper crane
#

you can add the schedule any time, it's up to you to schedule when to start the newly subscribed plan

outer oar
#

when we call cancel subscription spi does it send any value or date stamp of when plan actually cancels?

upper crane
#

you would schedule when that particular plan "ends" a.k.a to be updated to the new plan with Susbcription Schedules

outer oar
#

what does end_behaviour field means if we keep it release?

upper crane
outer oar
#

oaky trying now

#

Is their any api which gives us any cancel date value of the previous subscription based on this i can call the schedule Please suggest how can i proceed with this?

upper crane
outer oar
#

wt doed past_due mean?

#

wht does?

#

if i have to query for subscription which is canceled but it will actually cancel at end of this month which filter shd i use?

upper crane
outer oar
#

when we cancel subscription the schedulw wont be deleted?

#

canceled?

upper crane
#

there're two ways to go about this, either you use the schedule to update the current schedule, or you schedule a new subscription to be created when the old schedule is deleted

outer oar
#

when i cancel my current subscription which is yet to be scheduled

#

how can i do this?

upper crane
#

so you want to schedule a new subscription to be created when the old schedule is deleted?

outer oar
#

no i just want to cancel

#

when i cancel a subscription the schedule is not being cancelled does that means it will schedule the subscription for the given date?

upper crane
#

i don't really understand the question, can you try rephrasing?

crystal lark
#

๐Ÿ‘‹ taking over for my colleague. waiting for your reply

outer oar
#

Whe i cancel a subscription will the schedule subscription will aslo be canceled or deleted?

crystal lark
#

interesting question, I'm not entirely sure, let me get back to you on this

#

so yes when you do cancel the underlying subscription, the schedule gets canceled as well

#

and vice versa

outer oar
#

can we get the status of setup intent like how we have payment intent

crystal lark
#

yes sure

#

do you mean the webhook events?

outer oar
#

No using setupIntent Id can we get the status of the payment?

crystal lark
#

status of the payment?

#

do you mean the status of the intent?

pallid axleBOT
outer oar
#

is this same one we can use for checking paument intent status?

winter lion
#

not sure what you mean? the PaymentIntent object has a similiar status field yes.

outer oar
#

by passing setup intent or paymentintent can we get the status of payment is my qyery

winter lion
#

the query doesn't make sense unfortunately. Passing the SetupIntent or PaymentIntent to .. what exactly?

outer oar
#

Can u go through the above chat please

#

we are passing the intent to payment sheet and we want to know the status

#

it may be a setup intent or a payment intent

winter lion
#

you need to know which type of Intent it is, your code needs to have logic to know that and inform the frontend.
Both the object have a status field and we document the meanings of those in our API reference and elswhere.

outer oar
#

i want the api url for both thts it

#

doc url

winter lion
#

did you try looking yourself?

#

https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
https://stripe.com/docs/payments/payment-intents/verifying-status (first result on Google for "Stripe payment status")

We can help with specific coding and development questions and product questions about Stripe on this Discord as we know it can be complex and you can get blocked, but you are a software developer writing the code overall and need to self-serve some of the information yourself, we are not going to just do all the work for you.