#Vitalii

1 messages · Page 1 of 1 (latest)

junior beaconBOT
dark fable
#

Usually the secret key will be stored on the server itself

#

The Stripe backend libraries need your secret key so as long as you are providing it, the client library will be able to make calls on your account

#

You can store it and retrieve it as you do for other sensitive info on the server

#

Does that help? If not can you tell me more about where you are getting stuck?

icy oyster
#

Sorry for not being that clear. As I understand, when the app is installed by some client (Stripe account?) the app should obtain somehow this client API key, to make API calls on clients behalf. The question is how to obtain this API key in the first place?

#

After the app obtain API key it can be stored in db for further usage

dark fable
#

Gotcha, thank you for clarifying. Looking in to this and will get back to you.

icy oyster
#

Thank you very much

dark fable
#

It looks like that is a good way of creating and retrieving client secrets for accounts that have installed your app. I am admittedly less familiar with apps so I'm still looking to see how this may apply to your situation

icy oyster
#

I think this store doesn't contain clients API key

#

As I understand we can create some new secret and place it to that store

junior beaconBOT
icy oyster
#

I think I checked all the docs and didn't find an answer

tawdry hound
#

I'm stepping in for my teammate. Give me a few minutes to catch up!

icy oyster
#

sure, thanks

tawdry hound
#

So I don't think you should need a client's API keys for this

icy oyster
#

The doc is related to installing the app outside the Stripe App Marketplace. I'm not sure that it is relevant to installing the app right from the Marketplace

wet karma
#

Hi 👋

I'm stepping in here to offer some assitance. Based on what I can see I think you just misread the doc you originally posted
https://stripe.com/docs/stripe-apps/build-backend#authenticate-requests

The API requests being shown here are made on the App back-end using the Platform's (your) API key. They include the Stripe Account parameter that identifies the Account that installed the app. This is how you make back-end requests on behalf of the users who install your app.

icy oyster
#

It makes sense. I spend a lot of time figuring out... that I was wrong from the beginning. Thank you guys for your help! @wet karma @dark fable @tawdry hound