#steve34chen

1 messages · Page 1 of 1 (latest)

spring trellisBOT
mellow bobcat
#

@coral stream How can I help?

coral stream
#

Hi, I noticed that when I generate the stripe payment element, the stripe api will show my client secret key, how can I hide it or encrypt ?

mellow bobcat
#

Ah, so there's a difference between a client secret (which is what's in your screenshots above) and a secret key (which looks like sk_test_123... or sk_live_123...)

#

Your secret key should never be shared, as anyone who has access to it can make API requests on your account

#

The client secret, however, is safe to expose. There's no real harm that someone can do to your account with the client secret only.

coral stream
#

I see, thank you for your explanation

#

so stripe publishable api key can also be exposed right?

mellow bobcat
#

yes, that's okay, too