#green-node-expand

1 messages · Page 1 of 1 (latest)

agile frigateBOT
dry yew
#

Hi there

#

Let's use this thread

#

Can you re-post your screenshot here?

#

Ah never mind

topaz wadi
#

hi, sorry i accidently sent it before adding image lol

dry yew
#

Webhooks never expand by default

#

You have to re-retrieve the object after you receive the Event in your webhook endpoint and it expand it when you retrieve it

topaz wadi
#

i did re-retrieve it, i think

#

i read that it said re-retrieve it inside the webhook handler, so i'm not sure why it isn't expanding now

dry yew
#

Ah okay you are trying to use list line items there instead of retrieving the Session itself. You don't expand with that endpoint

topaz wadi
#

this still isn't working, is the expand one of the options parameters? , should it be in the same object as stripeAccount?

dry yew
#

Yes it would be same object as stripeAccount. Sorry, didn't notice above that you had it separated.

topaz wadi
#

still doesn't work, and i put it my clientside one and got this warning

#

(node:84058) Stripe: Invalid options found (expand); ignoring.

dry yew
#

What does "doesn't work" mean exactly. You aren't seeing line_items at all when you retrieve the Session?

topaz wadi
#

yeh, i'm not seeing line_items at all after i put them inside same object as stripeAccount

dry yew
#

Can you provide the exact code snippet you are using to retrieve here?

topaz wadi
dry yew
#

Err doh so sorry. You were right the first time. Expand is an argument and stripeAccount goes within the options object. So they should be separated.