#geekcorner_code

1 messages ยท Page 1 of 1 (latest)

balmy mapleBOT
#

๐Ÿ‘‹ 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/1384842853901008917

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

dreamy cedar
#

whoops sorry i thought it would add a code block automatically on the code question

harsh lance
#

hello! no worries, your question is plenty clear

dreamy cedar
#

i get it but color syntax is always better

harsh lance
dreamy cedar
#

so no diret replacement right?

#

oh

#

let me see this rq

harsh lance
#

you can also call this new endpoint to directly list all payments for a given invoice:
https://docs.stripe.com/api/invoice-payment/list

(note that it also works in reverse - you can pass in a payment intent via the payment.payment_intent param if you want to find an invoice associated with a given PaymentIntent. you aren't asking about this but it can be confusing to people so i figured i would let you know in case it ever comes up ๐Ÿ™‚ )

dreamy cedar
#

so basically a new request to make right?

#

since as far as i know, you can't ask webhooks to expand some properties on delivery

#

Also, in this case, how would I fetch the subscription from an invoice? I used to be able to do this too

harsh lance
#

i do think you would need to make a request as the payments property is listed as expandable... let me double check that real quick

dreamy cedar
#

oh okay

#

yeah okay if that's actually true that was a dumb question

harsh lance
#

(and you're right that you can't ask webhooks to expand)

#

there are no dumb questions ๐Ÿ˜›

dreamy cedar
#

let me prove you that there are dumb question: "what is a dumb question?"

#

Anyways, double checked the docs, and I couldn't find any subscription-related field

harsh lance
dreamy cedar
#

omw!

harsh lance
dreamy cedar
#

oh yeah i overlooked the parent property

harsh lance
#

yep it's subtle if you don't know what you're looking for

#

as a general rule for moving from pre-basil => basil i would suggest starting from the changelog

dreamy cedar
#

yeah my typings checks seems to work again!

#

Thanks!

harsh lance
#

yep!

balmy mapleBOT
shell magnet
#

hi! I'm taking over this thread. let me know if you have other questions.