#bugkiller.

1 messages · Page 1 of 1 (latest)

crimson islandBOT
bright zealot
#

ending the trial with trial_end=now seems like a good solution yep.

wheat bluff
#

yes, my question is

#

if user become normal user (not trial), need to assign some credits to user

#

I did this in stripe webhook

#

but if user click 'convert trial' in my website, I made change for 'trial_end'='now'

#

and return user object to frontend, so user didn't get credits yet because I'm only giving credit when I get charged webhook

#

how to deal with this?

bright zealot
#

you'd still get a webhook when the subscription changes after you made that API call.

wheat bluff
#

my application is single page application

#

frontend sends 'convert from trial to norma' ->
backend stripe trial_end='now' response to frontend

#

do you know how much time it will take for webhook?

#

I mean, once we change subscription,

#

I'll get sales.completed webhook asap?

bright zealot
#

I don't know what a "sales.completed" webhook is