#ivaylo-vasilev_webhooks
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/1412717831086145538
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there, jumping in to assist for my colleague
as you mentioned, this is because the 'payment_intent' field has been removed from the invoice object
now, to make a connection between invoices and PaymentIntents, you can use the Invoice Payments API: https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices#use-the-new-for-payments-and-invoice-connection
you can list Invoice Payments for the Invoice in question, and also expand the 'charge' parameter to get the 'payment_method' ID
https://docs.stripe.com/api/invoice-payment/object#invoice_payment_object-payment-charge
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.