#builderx

1 messages · Page 1 of 1 (latest)

lyric ferryBOT
naive atlas
#

I think so, but not 100% sure

#

Recommend testing it out

errant plover
#

Alright

#

How would I go about testing it in live mode though? I thought it was not allowed to do testing in live mode

#

Could I just assign a coupon for myself that gives a 100% discount

naive atlas
#

You shouldn't test processing payments in live mode

#

There's no harm in just copying a product to live mode to test

#

You don't need to process a payment to test copying a product to live mode. Just make the copy and retrieve the product and price over the api to verify lookup_keys was copied over

errant plover
#

Ok

#

If it's not copied over, how would I assign these lookup_keys

#

I did it in stripe shell earlier, will it work the same way on live mode?

naive atlas
#

Yeah

#

It should be copied over though

#

AFAIK. But yeah just test it

errant plover
#

Doesn't look like they copied over

#

Getting an error when looking up the key on live mode

#

Is there any way I could run the stripe shell on live mode online?

naive atlas
#

Can you clarify what error you're getting? And what you're trying to do when getting the error?

errant plover
#

I'm getting an error when looking up the key. I have it setup so whenever someone creates a checkout, the lookup key is passed as we have many subscriptiont ypes

naive atlas
#

Can you share the price id in here?

errant plover
#

price_1Nb2EoLojoR7MSCN2LyHBZTX

#
const prices = await stripe.prices.list({
    lookup_keys: ["key"],
    expand: ['data.product'],
  });
#

That's how I get the price using the lookup key. Everything worked perfectly fine in test mode, and all I did was move over the products to live

naive atlas
#

Can just use the update a price api

errant plover
#

Ok, thank you for the help