#f3bruary_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
Just to make sure we're on the same page, are you using Checkout with embedded components?
You linked to the Sessions API but we have a few different flavors of Checkout: https://docs.stripe.com/payments/checkout/quickstarts
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
Got it, okay
If you're using Checkout with Elements, this is probably what you're looking for: https://docs.stripe.com/payments/checkout/dynamically-update-line-items
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?
Yeah, that's safe to say. "Private preview" in our case means a limited release and that the feature is still in early development
Right, that's what I though
Since you're just getting started, I recommend reviewing this matrix: https://docs.stripe.com/payments/payment-methods/integration-options#choose-integration
according to that table, I need Embedded Components
Yep, and that's Checkout + Elements
Correct
Got it. Thanks a lot. I'll be sure to read more docs before continuing. Have a nice day.
You too!