#lyubo_api

1 messages ยท Page 1 of 1 (latest)

uneven totemBOT
#

๐Ÿ‘‹ 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/1399475205327421462

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

spice sentinel
#

Hi there

#

How do I retrieve these items here

#

they have a price tag and quantity. How do I do that without a session? Currently the payment is successful and I just need these items as an object. I am using PHP

kindred wasp
spice sentinel
#

Sure, Imma go $sessions = $stripe->checkout->sessions->all(['limit' => 3]);
dd($sessions->data[0]->payment_intent); so this retrieves the payment intent - pi_3RpvxUJEmfhShZIO1IWSRhVF. Do I need to use it in order to retrieve the lists now? ?

#

Oh yeah it worked

#

omg finally...

#

Thank you so much I tried 100 things

#

lol

kindred wasp
#

NP! ๐Ÿ™‚ happy to help

uneven totemBOT
spice sentinel
#

I was about to throw myself from the building where I live ๐Ÿ˜‚

#

Thank you and have a good one ๐Ÿ™‚

hearty pecan
#

Another quick tidbit, I think you may also be able to do this in one call. The line_items property on the Checkout Session is expandable, so if you include expand=['data.line_items'] I think we should include them in that first list call

kindred wasp
#

I was about to throw myself from the building where I live ๐Ÿ˜‚
Oh please don't!! We're here to help anytime you're stuck with Stripe SDKs/APIs ๐Ÿ™‚
You have a good one as well.

#

Yup what Pompey suggested might work too (just in an array)

spice sentinel
#

Well, my code is a bit more complex soo thats all I need

#

I just needed a small push

#

Btw what are your work hours?

hearty pecan
#

We're 24 hours during the work week. Global coverage! I think we typically start around 9 PM on Sundays and close around 5 ET or 5 PT on Fridays

spice sentinel
#

Awesome :))) Appreciate it