#jungle-checkout-embedded

1 messages · Page 1 of 1 (latest)

lusty boughBOT
south knoll
#

jungle-checkout-embedded

#

@tender nymph with Embedded Checkout you still create a Checkout Session server-side first and that takes a list of line items in line_items.

tender nymph
#

oh right 🤦‍♂️ So when the component is mounted it sends a POST request? How can I then create different embedded checkouts for different products?

south knoll
#

You really shouldn't. You build your own UI as a cart or something and only render Checkout when they are ready to pay

tender nymph
#

Ah, so I should probably store the cart in the auth session or something, then on checkout_sessions API request I fetch the cart, and add it to the line?

south knoll
#

yes

tender nymph
#

gotchu thanks