#soumya
1 messages ยท Page 1 of 1 (latest)
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
if i have already a subscription active we need to create shcedules from that?
yes, that's correct
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
you can add the schedule any time, it's up to you to schedule when to start the newly subscribed plan
when we call cancel subscription spi does it send any value or date stamp of when plan actually cancels?
you would schedule when that particular plan "ends" a.k.a to be updated to the new plan with Susbcription Schedules
what does end_behaviour field means if we keep it release?
it's explained here : https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-end_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
https://stripe.com/docs/billing/subscriptions/overview - you can read more about the past_due state on this page
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
so you want to schedule a new subscription to be created when the old schedule is deleted?
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?
i don't really understand the question, can you try rephrasing?
๐ taking over for my colleague. waiting for your reply
Whe i cancel a subscription will the schedule subscription will aslo be canceled or deleted?
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
can we get the status of setup intent like how we have payment intent
yes sure
do you mean the webhook events?
you can find all event types here https://stripe.com/docs/api/events/types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
No using setupIntent Id can we get the status of the payment?
status of the payment?
do you mean the status of the intent?
you can retrieve any setup intent https://stripe.com/docs/api/setup_intents/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and check its status https://stripe.com/docs/api/setup_intents/object#setup_intent_object-status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is this same one we can use for checking paument intent status?
not sure what you mean? the PaymentIntent object has a similiar status field yes.
by passing setup intent or paymentintent can we get the status of payment is my qyery
the query doesn't make sense unfortunately. Passing the SetupIntent or PaymentIntent to .. what exactly?
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
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.
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.