#peanut-apikey-question
1 messages · Page 1 of 1 (latest)
@fallow perch a lot of harm unfortunately if they get the Secret API key. For example they can refund all your existing charges
oh ok
i guess its seperate than my public api key
how can they do that without my id?
Correct it's separate. Each account has a pair of API keys. A Secret API key stored securely on your server for the majority of calls and a Publishable API key that is used client-side (where anyone can see it) to collect card details securely
the Secret API key is your id. That's how all API requests are authenticated, that's what your code uses to create a Customer, a Refund, respond to a Dispute, etc.
i had a dev which i gave my key to sor him to settup the website and he left within a week and im worried what harm he could do
ok
i thought it was ok to share id?
not api key though
account id
but really if you gave the API key to the dev and they stopped working with you you should make sure to roll that API key https://stripe.com/docs/keys#rolling-keys
account ids are not really relevant for a developer
can i confirm that if the api ket starts pk_live that its the public one
correct pk_live_123 => Publishable API key
and there is no way anyone could acess my account or harm me in annyway with it
also the test one i assume is publishable