#Jonah Librach

1 messages · Page 1 of 1 (latest)

potent driftBOT
frozen scroll
#

Hello there

raven karma
#

Hi

#

Both the productId and lookup_keys change when I copied the product over to live...

#

😦

frozen scroll
#

Hmmm can you share an example?

raven karma
#

Of my live mode?

frozen scroll
#

My understanding is that the Product and Price ID should change but not the lookup key

raven karma
#

Or the test

frozen scroll
#

Both please

#

The one that you copied

raven karma
#

The productId in test mode is sciugoMain

frozen scroll
#

Can you give me the Price ID instead?

raven karma
#

The live mode product that was copied is: prod_O2TkFSZuaqrUru
Not sure if that helps or if you can already see that

frozen scroll
#

Ah that helps

#

Just can't find it with just sciugoMain

#

But the other ID works

#

Let me take a look

raven karma
#

Kk thanks

#

FWIW, one of the live price ids is: price_1NGOmrEqrfgopYnc8nR4dn7S

frozen scroll
#

Great thanks

#

Interesting it does look like the lookup_key was not copied over for the Prices. I'll look into whether there is a reason for that or not and file a bug report if we should be copying this as well. In the meantime, you are going to want to just update your Prices in livemode to set your desired lookup_key using: https://stripe.com/docs/api/prices/update#update_price-lookup_key

#

Ah okay I actually am seeing that this came up in the past

#

The reason we don't copy the lookup_key is out of concern for collision with live mode Prices that have the same lookup_key

raven karma
#

I see

#

Can I do it from the dashboard or only API

frozen scroll
#

I believe this is API only

raven karma
#

Is there any way to test the API in live mode? Just to make sure everything is working?

I know that if I had launched the product to production it would have failed for sure and I would have had no way to no

#

I mean, I do have metrics, but would be better to know there are issues before launching something broken rather than in production

frozen scroll
#

We can't recommend creating test charges in live mode as this is against card network regulations.

#

I do understand there are some gaps to testing solely in test mode though

raven karma
#

What do you mean, create test charges in live mode? Would this be like using 424242424242 in live mode?

#

So how do I know whether prod is working?

frozen scroll
#

No I mean using your own real card in live mode to run tests

raven karma
#

What and then just refunding the purchase?

frozen scroll
#

Correct

#

So the only thing we can recommend is that you test in test mode and then ensure your live mode is set up the same way

raven karma
#

Ya but by default it cannot be set up in the same way

#

I guess I'm not the first to experience that pain

#

Okay