如果我知道客户ID,是否可以获取Stripe帐户ID?

时间:2019-04-13 08:27:37

标签: stripe-payments

我使用Stripe API,如果我知道客户ID,则需要获取Stripe帐户ID。有办法吗?

1 个答案:

答案 0 :(得分:0)

连接帐户后,您可以在OAUTH流程的末尾获得它,请参阅https://stripe.com/docs/connect/standard-accounts之类的东西:

{
"token_type": "bearer",
"stripe_publishable_key": PUBLISHABLE_KEY,
"scope": "read_write",
"livemode": false,
"stripe_user_id": USER_ID,  //this is stripe account id
"refresh_token": REFRESH_TOKEN,
"access_token": ACCESS_TOKEN
}