#bogdan-checkout-lineitems-event

1 messages · Page 1 of 1 (latest)

sly masonBOT
forest scaffold
#

bogdan-checkout-lineitems-event

#

Hey @remote arch let me have a look

remote arch
#

sure, let me know if you need extra information

forest scaffold
#

You appear to be a Connect platform creating Checkout Session directly on your connected accounts

remote arch
#

yes that is true

forest scaffold
#

so the Session lives on the connected account. So when you want to retrieve it or list its line items you have to explicitly tell us which account you're making the request on

remote arch
#

Okay i see, but how do I get the connected acount id on the webhook?

#

or would it be better if I didnt use configure the webhook to be connected?

#

didn't* configure

forest scaffold
remote arch
#

That worked! thanks a lot, you've been super helpful

#

there is one more thing that I am having issues with

#

I want to send an email to this connected account from which the event was triggered but cannot seem to be able to retrieve the email address

#

const account = await stripe.accounts.retrieve(
stripeEvent.account
);

#

this is the function that I used to retrieve the account

#

and account.email returns undefined

#

do you know what am i doing wrong here?

forest scaffold
#

yeah you can't access that information

#

you'll have to collect the email yourself separately, we don't surface it in the API for Standard accounts

remote arch
#

okay, i understand

#

well that was it then, thank you again for your help

#

and have a nice evening!