#builderx
1 messages · Page 1 of 1 (latest)
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
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
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?
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?
Can you clarify what error you're getting? And what you're trying to do when getting the error?
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
Can you share the price id in here?
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
Ah ok so looks like you'll manually have to set the lookup key: https://stripe.com/docs/api/prices/update#update_price-lookup_key
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can just use the update a price api
Ok, thank you for the help