#afenster
1 messages · Page 1 of 1 (latest)
I need some kind of explanation what this whole Stripe Connect thing is. So they share our API key and have their own additional account string?
I have a database with the secret key and account number for all the connect accounts. But in the UI, I need the public API key.
Yes, connected account will use the plaform public API key. However, you'd need to include stripeAccount as connected account ID when initialising StripeJS: https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
OK thanks. Looking at the database, there aren't very many rows at the moment, but they all have the same secret API key.
If I understand you correctly, that's not because I only have a few rows of data. It's because they all share a common key but have their own account string. Right?
Yes! All the connected account will be accessed via platform secret or public keys with Stripe-Account as connected account ID
No additional API keys will be needed for each connected account
Finally, just to be paranoid that we don't have more than one public key, is there an API call I can make to get the public key from the secret key?
Wouldn't surprise me if we have more than one. Maybe one per region or someting.
There's no API call to retrieve public key. You will be able to find public key in the dashboard: https://dashboard.stripe.com/apikeys
OK, thank you. That was helpful.