#barefootdev
1 messages · Page 1 of 1 (latest)
You need to expand the line_items
Ok thanks, is there a way to test this locally? I get a 'no such checkout.session' error
https://stripe.com/docs/development/dashboard/local-listener Yes you can set up a local listener
this is what im doing, but it cant seem to retrieve the line items
What do you mean by can't retrieve it? What response do you receive?
StripeInvalidRequestError: No such checkout.session: cs_test_a1NKt0w67yCm7K98ZqcgGmGu3U4MLubUiLCSsPpLFOPWWT2DWp2n4me9Bp
This happens when I run
event.data.object.id,
{
expand
: ['line_items'],
}
);
Make sure you are using secret key from the same Stripe Account
Okie what request id is that? req_xxx from 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.
The request to Retrieve Checkout Session
req_jIgo0UrCVUS5QG
hmmm okie, hold on