#syushchenko_api
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/1422134118141005875
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there! happy to help - would you mind sharing some more details around your question about PaymentIntent objects?
generally speaking, a PaymentIntent object won't have a direct connection to a Product object, but the answer could vary depending on your integration (i.e do you use Billing/Invoices? are you integrating with Checkout or Elements?)
We want to integrate with chargebacks911 services, for this we need to create orders in chargebacks911 using the API
All payments will be processed by Stripe. We need to receive a list of payments, including products. We'll be working through Checkout.
ok, if you can share the ID for an example payment I'd be glad to take a look and confirm if it's possible to retrieve the Product info via the API
since you're using Payment Links, you can get the Checkout Session ID (for example, from the checkout.session.completed event), and then you can use this API endpoint to retrieve the associated line items: https://docs.stripe.com/api/checkout/sessions/line_items
the Product ID can then be found within data.price.product
https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-line_items-data-price-product
integrating directly with PaymentIntents and Elements means that there is no Price/Product used in the integration (because you set the amount and currency directly on the PaymentIntent)
Products/Prices only become involved if you're integrating with Checkout/Payment Links, or Invoicing/Billing
Thanks for your help