#Tobq

1 messages · Page 1 of 1 (latest)

warm brookBOT
vital trench
#

@tame moss who are you

#

Hi

tame moss
#

Hello! I work for stripe - give me a minute to read through your questions

vital trench
#

I'd ask chatgpt but it would probably give me incorrect info

tame moss
#

So quick question - what specifically are you referring to when you talk about user credentials? I assume this is some concept of "user" in your own database?

vital trench
#

yes

tame moss
#

A quick solution would be for you to set metadata when you create the Checkout Session with enough data that you can link the session back to your user

vital trench
#

oh I could just store the user ID in the metadata

#

is this advised?

#

does slack fire the webhook every month when the user gets charged?

tame moss
#

What do you mean by slack firing the webhook? Are you using some slack plugin?

vital trench
#

i saw in the api docs

#

one second

tame moss
#

Yeah, so we send webhook events to notify you whenever a subscription is renewed, but I'm not sure why you're talking about slack?

vital trench
#

i meant stripe sorry

#

@tame moss

tame moss
#

gotcha

vital trench
#

@tame moss does invoice_paid represent the monthly payment? is it sent on the first payment (when the subscription is setup)?

tame moss
#

The invoice.paid event is sent for every successfully paid Invoice - so yes, it'll be sent for each monthly payment as well as the first Invoice that was created when the Subscription was first set up

vital trench
#

I konw there's invoice.payment_failed

#

does this cover either of those 2 events?

#

I guess I should simply assume the subscription is always cancelled - and add a new entry any time a new invoice_paid event comes in

#

but it would be good to know/show the status of the subscription

#

@tame moss are any events sent for chargebacks?

tame moss
#

I believe there's a dashboard setting you can set so that if a Subscription charge is disputed it automtaically cancels the subscription

vital trench
#

but I think that wont invalidate the existing month, right?

#

it will just prevent future charges

#

I want to prevent people trying to get free usage of my SaaS service

#

ive heard about peoples nightmares with chargebacks

tame moss
#

What do you mean by "wont invalidate the existing month"? It'll cancel the subscription immediately and it would be up to you to listen for the Subscription cancellation event and then immediately revoke their access

vital trench
#

but with an actual user cancellation, their current month is still valid - the following months are cancelled

#

with a charge-back, the current month should be invalidated - as well as future months cancelled

tame moss
#

Is there no way for you to revoke access at the time the Subscription is cancelled? That's what I would recommend at least

vital trench
#

If they cancel a subscription, their payment for the current month will still go through, no?

tame moss
#

Their payment for the current month has still gone through but if they've disputed it that means they're going to attempt to get some of those funds back. Through the settings, you have the option of deciding whether you'd like to cancel the Subscription immediately (and no longer give them access), canceling at the end of the current period, or not cancelling at all

#

It all depends on what specifically you want to do/how your subscrptions work

vital trench
#

i mean, if they cancel - not dispute - they will still pay for the current period, right?

tame moss
#

Let's back up for a second and approach this a different way since I think we're talking past each other - what specific behavior are you trying to achieve?

vital trench
#

user cancel -> continue existing subscription, no more future charges.
user disputes -> cancel existing subscription, no more future charges
@tame moss

tame moss
#

Yes, so you can do both of those things:

  • user cancel -> Use cancel_at_period_end: true to wait until the end of the month to cancel the Subscription
  • user disputes -> Use the dashboard setting that cancels the subscription immediately
vital trench
#

i thought users could cancel directly from stripe

#

makes sense, i should just cancel on their behalf wiht the at-end-of-period

#

thanks

tame moss
#

👍 happy to help!