-
Notifications
You must be signed in to change notification settings - Fork 15
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
Netlify Frontend for sample app #5
base: main
Are you sure you want to change the base?
Conversation
|
||
const handler = async(event) => { | ||
try { | ||
event.body = JSON.parse(event.body || {}); |
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.
Do you need to do anything to configure Stripe to use this endpoint? Just want to know for readme purposes
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.
Do you need to do anything to configure Stripe to use this endpoint? Just want to know for readme purposes
Well currently, when checkout is completed, on the success page it fires an api request to create the order. I'm sure that you could set up a webhook so that the user wouldn't have to wait for the success page and instead the webhook would trigger this route.
Includes route, test, and model updates