#-reduce-_api

1 messages ¡ Page 1 of 1 (latest)

rigid sandalBOT
#

👋 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/1331167880380813352

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

woeful thunder
#

Hi! Do you have examples of the charge objects?

hoary vessel
#

Yes Do You want concrete Id of charge?

woeful thunder
#

Yes please

hoary vessel
#

okay one sec

#

here is PaymentIntent obj

#

pi_3QfHczJZ9pJk48QC16MCrpKg

#

sec i will provide charge

#

or PI is enough?

#

because I took pi from charge

#

latest_charge
py_3QfHczJZ9pJk48QC10em4Scl

woeful thunder
#

Does this payment come with the line items you mentioned?

hoary vessel
#

no it does not

#

and thats the problem because I cant see what it was paid for :/

#

If there is an invoice in charge -> payment_intent object i can take item.invoice.lines.data and check its price.product or item description

#

in this case I dont have any data that I can recognize product

woeful thunder
#

Can I have the other payment intent where you have line items?

hoary vessel
#

pi_3ODNF6JZ9pJk48QC1jOTeVPu

woeful thunder
#

Thanks for waiting!

hoary vessel
#

Hmm so should i retrieve checkout session from this payment intent where i dont have invoice?

#

and there will be line items?

woeful thunder
hoary vessel
#

okay can I retreive checkout session id by payment intent somehow?

woeful thunder