Next.js Discord

Discord Forum

What should i store in my own db when making subscription with Stripe

Answered
Rhinelander posted this in #help-forum
Open in Discord
Avatar
RhinelanderOP
I have app that requires user to pay subscription that allows user to create/edit/delete stuff in it's space. What stripe info should I store in my db?
Answered by B33fb0n3
that depends on what you would like to do in the future as well. I like to save the customerId (so you have a relation to the whole customer) and a subscriptionId when I want to get details about the current subscription
View full answer

3 Replies

Avatar
that depends on what you would like to do in the future as well. I like to save the customerId (so you have a relation to the whole customer) and a subscriptionId when I want to get details about the current subscription
Answer
Avatar
RhinelanderOP
I think this will suffice
Avatar