#fletchstud
1 messages · Page 1 of 1 (latest)
hello! how can i help?
hi Alex! I am following this documentation https://stripe.com/docs/billing/quickstart to incorporate subscriptions into my react app
PriceListParams priceParams = PriceListParams.builder().addLookupKeys(priceId).build();
PriceCollection prices = Price.list(priceParams);``` this is what my code is looking like and I understand we look up prices via a lookupkey
alright, what's the issue you're facing?
I don't know how to set a lookupkey for my price
if you already have an existing Price, then update the Price's lookup_key - https://stripe.com/docs/api/prices/update#update_price-lookup_key
otherwise, if you're creating the Price, include the lookup_key - https://stripe.com/docs/api/prices/create#create_price-lookup_key