#abishek_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1217090858722001016
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- abishek_best-practices, 50 minutes ago, 9 messages
Hi there ๐ I'm not exactly sure offhand, I haven't tried that approach before. I would recommend testing it in testmode and see if it behaves the way you're hoping.
ok
similar to deleting specific subscription items from a subscription, is it possible to pause the billing of specific subscription items?
No, pausing can only be done at the Subscription level, not the Subscription Item level.
ok, thank you
based on the docs here https://docs.stripe.com/billing/subscriptions/webhooks what is the ideal webhook to receive subscription renewal updates?
I am currently listening to subscription.updated, but want to eliminate the events when a subscription is resumed, paused
customer.subscription.updated is likely the best option, unless one of the Invoice payment ones works better for the specifics of your flow.
You would need to add your own filtering logic to discard events that you aren't concerned with, you can't have Stripe filter those out.
any way to identify if the webhook is specific to renewal
The billing period will change, but you can use a Test Clock to simulate your full flow in testmode
https://docs.stripe.com/billing/testing/test-clocks/simulate-subscriptions
This will allow you to see exactly what Events your flow is triggering, and what they will contain
no, I am not asking Stripe to filter out, in a previous app, I listened to invoice.payment_succeeded event and there is a billing reason that has the value subscription_cycle indicating that its a renewal. Just checking to see if there is anything similar on the subscription.updated event..
No, Subscriptions do not have that attribute.
proration_behavior is a valid parameter for the endpoint to delete a Subscription Item:
https://docs.stripe.com/api/subscription_items/delete#delete_subscription_item-proration_behavior
it allows you to control the proration behavior that is used when that item is deleted.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, thank you
Any time!
got one more question, the Cancel subscription https://docs.stripe.com/api/subscriptions/cancel cancells the subscription immediately and it accepts a reason. To cancel a subscription at the end of the cycle, I have to use the subscriptions update with cancel_at_period_end set to true. Is there a way to capture the cancel reason when cancelling at th end of cycle? Right now this option is only there for the cancel method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ah, never mind
there is a cancellation_details property
missed that
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the only exception is specifying a reason when deleting a subscription item, no way to set the reason for that
if a customer wants to cancel the cancellation of a subscription set to expire at the end of cycle, will setting the cancel_at_period_end to false be enough?
Should be
if no propration is set on the update subscription when deleting subscription items, do I assume that deletion of the subscription item will only happen at the end of the cycle and is there a way to revert it if the customer wants to cancel the deletion