#AlexKing-APIkey
1 messages · Page 1 of 1 (latest)
Hi @polar tide! It looks like you are using a restricted API key that doesn't have the required permissions. What exactly is your question?
we have implemented payment method directly from mobile application using firebase extension and we are creating checkout_sessions collection in firestore and there we are getting this error
we have installed run payment with stripe extension in firebase
I don't know much about that unfortunately.
But basically however you configure that extension, give it your full secret key sk_test_xxx instead of a restricted key and that should fix it.
your guide says
Then, in the Stripe Dashboard:
Create a new restricted key with write access for the "Customers", "Checkout Sessions" and "Customer portal" resources, and read-only access for the "Subscriptions" and "Plans" resources.
which is fine for one use case that guide is for (Billing), but it doesn't work for the mobile integrations, since they use different APIs(and one of those APIs doesn't work with restricted API keys), so that's why you're getting this basically.
seems to me like the guide is outdated perhaps
where should i place the full secret key?
anyway just use your secret key and it will fix it
same place you placed the restricted key when setting up Firebase I suppose
firebase is not allowing to place secret key
how so?
???
do you get some kind of error from Firebase when trying to use the secret key?
can you expand on "not working"? an error message or a screenshot, perhaps?
seems ok to me, I'm not sure I follow how that is "not working".