Open utterances-bot opened 2 years ago
I'm having trouble testing the checkout session on: Stripe Checkout on the Server (https://fireship.io/courses/stripe-js/checkout-server/)
Could anyone assist me with this error: TypeError: Cannot read property 'line_items' of undefined at exports.app.post.runAsync
Solved!! This was caused because Express handles incoming body elements as a string. Which prevented me from executing the createStripeCheckoutSession(body.line_items)
Because body.line_items was not an object :)
Stripe Checkout on the Server
Create a checkout session on the server
https://fireship.io/courses/stripe-js/checkout-server/