#bogdan-checkout-lineitems-event
1 messages · Page 1 of 1 (latest)
sure, let me know if you need extra information
You appear to be a Connect platform creating Checkout Session directly on your connected accounts
yes that is true
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
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
The Event has the account property that tells you which account the Event is from https://stripe.com/docs/api/events/object#event_object-account
And you have to use a Connect webhook endpoint since you are using Direct Charges and creating the Session on the connected account
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?