#kevin_dispute-accountsupport
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/1287879707102019669
đ 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.
- kevinx9999_api, 12 minutes ago, 3 messages
Hello there, I read the document about subscription cancellation, is it
await stripe.subscriptions.del(subscriptionId);
or
await stripe.subscriptions.cancel(subscriptionId);
When the sub is cancelled in the middle of the billing cycle, will Stripe prorate ?
if the webhook below returns, is it the confirmation for cancellation?
case "customer.subscription.deleted":
To be clear, is this the documentation you're referring to? https://docs.stripe.com/billing/subscriptions/cancel
I just need an API to allow user cancel sub, yes, this is the one I found about sub cancellation
is this the right one?
Hello? I also have a few questions about how to best handling disputes, can I ask here or do I need to start a new threat?
No, we can chat here. Sorry for the delay!
ok, let's talk about the subscription then
please kindly answer the questions about the subscriptions only
Hello???
To cancel a Subscription, you'll need to use stripe.subscriptions.cancel
Note that calling cancel will immediately cancel a Subscription. As for prorations, you would have to decide if you want to prorate or not: https://docs.stripe.com/api/subscriptions/cancel#cancel_subscription-prorate
so the default is not prorate,? which is fine
I recommend reviewing this: https://docs.stripe.com/billing/subscriptions/webhooks#events
If you cancel, you'll get subscription_schedule.canceled
great thanks
Note that you can also update a Subscription to cancel at the end of the billing period: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at_period_end
thanks, if the default behavor is cancel at the end of the period, why do I have to config this extra step?
ok, subscription_schedule.canceled is not triggered after I use stripe.subscriptions.cancel
only customer.subscription.deleted is triggered
Sorry, what extra step?
you can also update a Subscription to cancel at the end of the billing period: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at_period_end, this step
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
also I'm trying to start a new threat about handling disputes, it doesn't allow me because I have an open threat here
You can ask your disputes question here once we finish chatting about Subscriptions
Let me take a step back to outline your options. If you're interested in canceling a Subscription, you can either:
- Update a Subscription to cancel at the end of the billing period. This means that, at the end of the current cycle, the Subscription will be canceled automatically and no new invoices will be generated, or,
- Cancel a Subscription immediately
ok, thanks, if I cancel a sub immediately, Stripe won't prorate and refund, that means the sub will be charged again, which is fine?
What do you mean by charged again?
there won't be new invoices for next billing period?
If you cancel a Subscription immediately, there won't be new invoices for the next billing period, correct.
ok, that's great, now, which webhook events is to confirm the cancallation?
if it's canceled immediately
I really recommend testing this out
ok, I did, only customer.subscription.deleted is triggered
nothing comes back from stripe.subscriptions.cancel
which is fine as well
just want to confirm
Ah, I scrolled too far in our docs and copied the wrong thing. When a Subscription is canceled, you'll get customer.subscription.deleted.
subscription_schedule.canceled only applies if you're working with Schedules
ok, these are all tested in TEST mode, for production, it should be the same right?
Correct
thanks!
now, what is the best practice to handle disputes? especially fraudulant ones? I saw someone posted on X, that some people use small online services to test stolen credit cards, and they can send 20-50 disputes each day
just need to understand how to deal with situation like this and handle it automatically
GPT says I can submit evidences through an API
I recommend starting here if you haven't already read this: https://docs.stripe.com/disputes/responding
Yes, you can use the API to respond to disputes but that's kind of a tangential question to how to avoid disputes in the first place: https://docs.stripe.com/disputes/api
so avoid disputes should be the priority?
Correct, though you should also be prepared to handle these as they come in
ok, read through the best practice already, and still don't know how to handle this kind of fraudulent disputes, such as some bad guys testing stolen credit cards and send 50 + disputes in a day
I heard high dispute rate impact the Stripe account as well
so how to handle this situation properly and automatically
should just refund all these fraudulent disputes automatically? or submit evidences to fight it? or escalate to someone at Stripe?
@shadow narwhal I'd recommend talking to our support team for help about this: https://support.stripe.com/contact
kevin_dispute-accountsupport
Alright, will do, thanks.