#beinggandhi
1 messages · Page 1 of 1 (latest)
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:
Can you provide the errored request id?
No I meant the GET request where you retrieve the Checkout Session. Find it on https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_zvcG1rJKDzNDaK
Okie I see, here you call this request from
acct_1HrjUNHaof0IjCDr You need a Stripe Account header to
acct_1Idfl5QZAsCa0eLd
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
Yes, you will need the Stripe Account header. See https://stripe.com/docs/connect/authentication It's different from Express where the Checkout Session belongs to the Platform and you didn't need this