Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend: implement payment services #44

Open
nekopudding opened this issue Jun 28, 2022 · 0 comments · Fixed by #50
Open

Backend: implement payment services #44

nekopudding opened this issue Jun 28, 2022 · 0 comments · Fixed by #50
Assignees

Comments

@nekopudding
Copy link
Contributor

nekopudding commented Jun 28, 2022

  • create a customer on first session with user_id as metadata, store customer_id also in accountsDB
  • create a subscription and attach the customer to it, set to default_incomplete and on checkout success activate the subscription
  • once backend is uploaded, make the webhook redirect to the backend webhook url to listen for stripe events
  • create a session attaching the customer and subscription and redirect the user to it when user wants to subscribe
  • create a customer portal session when requested for the user to manage their subscription, attach the customer to it

Deliverables:

  • code on github
@nekopudding nekopudding self-assigned this Jun 28, 2022
@nekopudding nekopudding linked a pull request Jul 4, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant