#lliu_code

1 messages ¡ Page 1 of 1 (latest)

spark wyvernBOT
#

👋 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.

torpid garden
runic kraken
#

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

torpid garden
#

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

runic kraken
#

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'?

torpid garden
runic kraken
#

it's okay. i found it.