#abishek_best-practices

1 messages ยท Page 1 of 1 (latest)

rough quarryBOT
#

๐Ÿ‘‹ 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.

sudden spruceBOT
#

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.

dusk gyro
#

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.

tired fjord
#

ok

#

similar to deleting specific subscription items from a subscription, is it possible to pause the billing of specific subscription items?

dusk gyro
#

No, pausing can only be done at the Subscription level, not the Subscription Item level.

tired fjord
#

ok, thank you

#

I am currently listening to subscription.updated, but want to eliminate the events when a subscription is resumed, paused

dusk gyro
#

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.

tired fjord
#

any way to identify if the webhook is specific to renewal

dusk gyro
tired fjord
#

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..

dusk gyro
#

No, Subscriptions do not have that attribute.

tired fjord
#

ok

#

Can Deleting subscription items issue pro-rata refunds?

dusk gyro
tired fjord
#

ok, thank you

dusk gyro
#

Any time!

tired fjord
#

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

#

ah, never mind

#

there is a cancellation_details property

#

missed that

#

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?

dusk gyro
#

Should be

tired fjord
#

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