-
Notifications
You must be signed in to change notification settings - Fork 0
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
creating stripe checkout session endpoint #42
Conversation
); | ||
|
||
/* | ||
stripeRouter.post("/create-checkout-session-subscription", async (req, res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This endpoint still a WIP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far! Thanks for also including that db work, so we store Stripe session ids internally. Can you also include sample requests and responses in this PR for your new endpoints? |
superseded by #46 to remove ongoing db changes from PR |
Notion ticket link
Ticket Name
Implementation description
We implemented a Stripe Checkout session for a one time payment by first creating the Stripe route that calls the Stripe service which calls and creates a checkout session. This is a basic endpoint that when called, it will direct the user to a separate page to a checkout session and it currently shows a static item in the checkout (one product).
Things to implement / keep in mind for later tickets:
ui_mode: "embedded"
to checkoutSessionDefaultOptions in order to make the checkout session embedded into the page instead of going to a separate Stripe checkout page (is a bit more complicated and requires a frontend component to test)Steps to test
What should reviewers focus on?
is_recurring
should be of type Recurrence?Checklist