#Euclid
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Cool ๐
you need to change the API key and the webhook secret
so thats the restricted key at the bottom of the stripe live dashboard needs to be created ?
and the webhook secret added to the extension in firebase ?
I'm not sure I follow
correct
And on Developers /apikeys Restricted keys
For greater security, you can create restricted API keys that limit access and permissions for different areas of your account data.
I need to create a new Restricted Key for live also and add to the extension ?
@scarlet moat Thanks I will try this now
if you don't want to use your Live API key (which has all access) then yes
I just want to turn on live payments from Test mode
so I have created a new restricted key and put this and the webhook secret into the extension on firebase now
and inported the webhook to live from test on stripw
does this sound correct ๐
AFAICT yes
Hey @scarlet moat
so having completed these steps........ No such customer: 'cus_blah'; a similar object exists in test mode, but a live mode key was used to make this request.
the webhook is failing with this message -
yes this is because you're still receiving the test mode webhook events on the same URL
you should have 2 separate environments for test and live each one having its unique URL that you need to pass to the Stripe Webhook Endpoint
I choose the option to import the webhook in stripe on the live side
how should i fix this issue
would you mind sharing your account id so I could take a look?
sure - where will I find this
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
let me check
that's the prob
you need to have 2 separate URLs for each mode
but the extension only provides one
you could go to https://dashboard.stripe.com/test/webhooks
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yes that's correct but you need to deploy 2 separate environments
would removing the test webhook fix the issue ?
I can delete or disable the test webhook if needed....
yes if you disable it it would solve your problem for now
you're using a customer from test mode to create a Checkout Session in live mode
that's why you're getting the error
where are you getting the customer ids from?
but this is just a customer in the firestore - i dont have a staging environment
that's the problem right there, this is why I explained that you need to have 2 separate environments
the customer is in the collection just
because it's not just about keys and secrets but also about data
yes but you can't use a customer from test mode in live mode
you need to create a separate environment for you live mode
but I cant recreate all the features in firebase easily to setup the stripe extension again
would a new customer created after turning on live stripe work now ?
yes
but I don't really encourage you to do testing on live mode
I didnt realise it needed 2 firebase projects to run test payments
Thanks for your support with this
let me know if you need any more help