#f3bruary_best-practices

1 messages ¡ Page 1 of 1 (latest)

primal swallowBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1361455096336224347

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

sturdy plaza
#

Hi there

#

Can you expand on what you mean by cart state?

torn tide
#

Hi!
The items in the cart. When I add/update/remove cart items, can I just call an API endpoint to manage the cart's contents? And then to display the cart items, again, call an endpoint to get the line items that have been added, so I can display that data in the actual cart element

#

afaik, my options are to store the cart contents in a cookie, localstorage, a session or a DB.

But I just wanted to check if Stripe has something to cover this

sturdy plaza
#

Just to make sure we're on the same page, are you using Checkout with embedded components?

torn tide
#

Sorry for the confusion. I'm new to stripe. I haven't started on the cart/checkout aspect of the site yet. Doing some brainstorming right now.

I plan on using Stripe Elements

sturdy plaza
#

Got it, okay

torn tide
#

It seems to be in private preview, and has a limitation I'm not sure I'll be needing.

#

Would it be safe to say that this isn't really ready for production right now?

#

Also, I wasn't really planning on using the limited inventory feature on Stripe.

Again I'm totally new to Stripe. My understanding so far has been that I just create a checkout session, add line items (for the checkout only), and then have people pay

Am I required to sync my inventory to Stripe?

sturdy plaza
#

Yeah, that's safe to say. "Private preview" in our case means a limited release and that the feature is still in early development

torn tide
#

Right, that's what I though

sturdy plaza
torn tide
#

according to that table, I need Embedded Components

sturdy plaza
#

Yep, and that's Checkout + Elements

torn tide
#

Okay, so nothing cart related technically

#

I'll have to manage that myself

sturdy plaza
#

Correct

torn tide
#

Got it. Thanks a lot. I'll be sure to read more docs before continuing. Have a nice day.

sturdy plaza
#

You too!