I'm new to develop things in JS and i was wandering aroud Stripe techno.
I have a project to make a site where you can buy credits, let's say for 24h, to use for accessing extended functionnality (not a pr0n site :) )
Things i want to do is:
- User buys "credit" (for 24h, 48h, 1 week)
- The credits are "stackable" (if I buy 2x 24h I have 48h)
- When user's credit hits 0, sends a command to client side to "close access"
All stack is in JS client side and NodeJS server side.
I have no clue how to develop this with Stripe integration. Does Stripe have a function to do this, or should i use the token they return and build a thing with Redis and EXPIRY keys ?
Thanks for reading and in advance for your answers.
Aucun commentaire:
Enregistrer un commentaire