#hzethraeus-checkout
1 messages · Page 1 of 1 (latest)
Hi, it really depends on what you're trying to achieve.
If you want the "cart" effect where in your website the customer chooses the items and then you create a Checkout Session based on these items then yes it would be probably a good idea to Post the items to your handler and use that to create the line_items
I would probably say that instead of using the form action and method to call the server side code it would be best to call it through javascript in that case since you will have to pass a more complicated Request Body
Okey, thanks for clarifying!
I guess I will dive into some youtube tutorial on routers
let me know if you need any more help
Yeah Im a bit lost, I found one suggestion that I add my information in the redirect uri, so something like this:
api/checkout_session/{price}
Is price something we want to keep a secret?