ezet / stripe-sdk

A simple and flexible Stripe library for Flutter with complete support for SCA and PSD2.
https://pub.dev/packages/stripe_sdk
Other
137 stars 137 forks source link

Confusion between Publishable key and Secret key #121

Closed idrish-sorathiya closed 3 years ago

idrish-sorathiya commented 3 years ago

Hi,

Thanks for such a wonderful package.

I was exploring a library and document of it. I found that everywhere we have used word Publishable key and at most of the places code documentation is saying "[publishableKey] is your publishable key, beginning with "sk"....." however, publishable key starts from "pk" and Secret key starts from "sk_". so, which key is expected by library to work smoothly.

ezet commented 3 years ago

Publishable key is the correct key to use. The secret key should definitely not be stored in the client.

ezet commented 3 years ago

Fixed.