Skip to content

Conversation

@IslandRhythms
Copy link
Contributor

Includes route, test, and model updates

@IslandRhythms IslandRhythms requested a review from vkarpov15 July 27, 2022 16:12
@IslandRhythms IslandRhythms changed the title Netlify Frontend for sampel app Netlify Frontend for sample app Jul 27, 2022

const handler = async(event) => {
try {
event.body = JSON.parse(event.body || {});
Copy link
Member

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

Copy link
Contributor Author

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.

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 this pull request may close these issues.

3 participants