#dylanswoogodev_49342
1 messages · Page 1 of 1 (latest)
Platform secret key should be used. To access the connected account with platform secret key, Stripe-Account header in the request should be used: https://stripe.com/docs/api/connected_accounts
You only need platform's live and test key that you have controlled with
ok, so in this example
curl https://api.stripe.com/v1/customers/cu_1MnugZEdf6TSQTyAirVYANUY
-u sk_test_51MYbd0Edf6TSQTyA7aNBjnUrcGutZo2vIz3lKdrT68ZyUtMsAuog7gCZsAUqJjjKdU1JnptrlSEQrLYmNd3sScJ600zXlc5j7h:
-H "Stripe-Account: acct_1MYbd0Edf6TSQTyA"
-G
the sk_test_ is for the platform and the acct_ is the account that connected previously
Please do not share secret key in this channel as this channel is public
thats from the stripe docs
I'd recommend rolling the secret key as it has been shared publicly: https://stripe.com/docs/keys#rolling-keys
Stripe doc will take your secret key if you're logged in
oh, dang, i see
The example looks correct to me