#lliu_code
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/1359679585595162734
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! can you share the request id [0] where you tried and it wasn't working? it'd look like req_xxx
[0] https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_YtrqxSU8FUUZoT
req_pNacDnd1qArAWU ... if i create with expand ["latest_invoice"] .. i got 200
but eventually what's wanted is to get the payment_intent linked to the lastest_invoice of the new sub
ah, so your stripe-go SDK is using API version 2024-06-20. Each version of the SDK is tied to a specific API version. For your stripe-node request, you're using the SDK version 18.0 which is tied to our latest API version 2025-03-31.basil - and there are quite a number of breaking changes in this API version, one of which is that the payment_intent parameter has been removed from the Invoice object : https://docs.corp.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices
if you're not planning to upgrade to the latest API version 2025-03-31.basil and want to use an older API version for your stripe-node, what you can do is explicitly specify the older API version : https://docs.stripe.com/sdks/set-version?lang=node#setting-the-api-version
since i am using sdk, the apiVersion cannot be set as free input
which version of stripe js sdk I should use for API version '2024-06-20'?
sorry, i'm not sure I understand, you can definitely set the API version when initializing stripe when using the stripe-node SDK as per the example i shared : https://docs.stripe.com/sdks/set-version?lang=node#setting-the-api-version - have you had the chance to take a look at this yet?
it's okay. i found it.