#barefootdev

1 messages · Page 1 of 1 (latest)

digital oreBOT
grand hearth
#

You need to expand the line_items

junior dagger
#

Ok thanks, is there a way to test this locally? I get a 'no such checkout.session' error

digital oreBOT
grand hearth
junior dagger
#

this is what im doing, but it cant seem to retrieve the line items

olive charm
#

What do you mean by can't retrieve it? What response do you receive?

junior dagger
#

StripeInvalidRequestError: No such checkout.session: cs_test_a1NKt0w67yCm7K98ZqcgGmGu3U4MLubUiLCSsPpLFOPWWT2DWp2n4me9Bp

#

This happens when I run

      event.data.object.id,
      {
        expand
          : ['line_items'],
      }
    );
olive charm
#

Make sure you are using secret key from the same Stripe Account

junior dagger
#

I am

#

Since i'm able to construct the event i assume everything is set up properly

olive charm
#

The request to Retrieve Checkout Session

junior dagger
#

req_jIgo0UrCVUS5QG

olive charm
#

hmmm okie, hold on