#beinggandhi

1 messages · Page 1 of 1 (latest)

leaden jungleBOT
topaz karma
#

But in case when we are doing session lookup for a standard account attached to our platform it is failing

#

sample test account id : acct_1Idfl5QZAsCa0eLd

#

sample session id : cs_test_a1lehScWHrWHTiFNpIwIof96bsHWavGVlyNjc8M4HeMELVcUloftzDrCas

#

it says : No such checkout.session:

regal shoal
#

Can you provide the errored request id?

topaz karma
#

evt_1OANCTQZAsCa0eLdd14sDKa3

#

is this what you are looking for

regal shoal
topaz karma
#

req_zvcG1rJKDzNDaK

regal shoal
#

Okie I see, here you call this request from
acct_1HrjUNHaof0IjCDr You need a Stripe Account header to
acct_1Idfl5QZAsCa0eLd

topaz karma
#

this is the request from the webhook req_hxg8ehXlIz6lMG

#

how do we do it on the backend for the webhook

#
    const expandedSession = await stripe.checkout.sessions.retrieve(
        session.id,
        {
          expand: ['payment_intent.latest_charge'],
        }
      );
#

where
const stripe = require('stripe')('TESTKEY')

#

@regal shoal : above code works when we have a webhook for express account but not for standard connected account

regal shoal