#AppleJaxxZ-price-lookup_id

1 messages ยท Page 1 of 1 (latest)

strange marsh
#

Hi there ๐Ÿ‘‹ could you point me towards the docs that you're referring to?

austere kayak
#

scroll down to add a checkout button

hidden galleon
#

And what ID on that Checkout Session is always null?

austere kayak
#

lookup_key

#

when i click on product, then click on the endpoint for prices, the reponse data has a key of null

#

so im not sure if im supposed to code in the priceId for reach checkout or the lookup_key

#

the backend in this example accepts a lookup_key though'

#

im using react and node

hidden galleon
#

Did you provide a lookup_key when you created the Price object?

austere kayak
#

no, where can I do that?

hidden galleon
#

You can also use the standard price ids

austere kayak
#

so if you look at the 2ind image i sent you, instead of providing [req.body.lookup_key]. i would put [req.body.priceId] instead right?

#

like, does lookup_key present the price in a different way or is it the same thing as using priceId?

#

nevermind, im going to try a few things, ill get back to you if im still stuck thank you

hidden galleon
#

There isn't an equivalent with the price IDs, I was a bit mistaken.

#

It looks like you can use the lookup key to list a couple prices at a time but there is not an equivalent filter that uses the IDs that Stripe generates

#

Sounds good, happy to help on anything that you get stuck with