#Flavitax
1 messages · Page 1 of 1 (latest)
hi! you could call https://stripe.com/docs/api/subscriptions/cancel from your code that handles your users deleting their accounts on your site.
Thanks, but, Isn't the Firebase Stripe Extension supposed to do that automatically?
I don't know I'm afraid, we don't really know much about that extension
Stripe is the author of the extension but alright, thanks I'll try to call the api. Have a nice day!
we are but unfortuantely we don't really maintain it and a lot of the people who worked on it don't work at Stripe anymore
so it's not in a great situation, and we don't actually have much Firebase knowledge internally to maintain it
Okey, thanks for the help
Another question, I'm using @stripe/stripe-js and i can't find the API subscriptions.del functionnality
yep because stripe-js is a frontend library, and deleting a subscription is something you do on the backend instead using a secret key
using a library like stripe-node if you use Node.js on the backend, or our PHP library, or so on.
How can I do this with Next.js?
you can install our stripe-node library and use that I would imagine! https://github.com/stripe/stripe-node
This one is client side?
no, it's server side.
per the link I posted :
The Stripe Node library provides convenient access to the Stripe API from applications written in server-side JavaScript.
For collecting customer and payment information in the browser, use Stripe.js.
Sorry for bothering you again, do you know something about "Auto delete" setting in "Customers" ?
Because the stripe Firebase Extension uses server side functions to do what i'm looking for but it sais i have to check this option on the stripe dashboard and i cant find it
I do not, what setting is this?
where does it say that exactly?
I don't know, thats why i'm asking the support
it sais i have to check this option on the stripe dashboard and i cant find it
what says that exactly?
"
You have the option to automatically delete customer objects in Stripe by setting the deletion option in the configuration to “Auto delete”. In that case, when a user is deleted in Firebase Authentication, the extension will delete their customer object in Stripe which will immediately cancel all subscriptions for the user.
"
that sounds like more like configuration in the Firebase app. There's nothing in the Stripe dashboard for that
Hummmmm i see, i'l search for that then, thanks
I'm dumb af, ive been looking for a week and you are right, i'ts just a select option
I never used Firebase, but I assume it's an option in the config when installing the app or something
great!
Ure a legend