stripe-payments - 如果我知道客户 ID,有没有办法获得 Stripe 帐户 ID?
问题描述
我使用 Stripe API,如果我知道客户 ID,我需要获取 Stripe 帐户 ID。有没有办法做到这一点?
解决方案
当帐户连接时,您可以在 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
}
推荐阅读
- python - 如何使用正则表达式(TextFSM模板)单独匹配单行CLI输出(LLDP)的三个单独部分
- batch-file - 批处理文件读取特定属性的值并将其用作变量
- python - 如何使用外部字段序列化查询集?
- windows - TLS 1.0 客户端连接到我的 ASP .Net Core 服务时出错
- r - R:基于多个条件的两个数据帧的子集
- maps - 如何在 folium 的特定缩放级别之外隐藏标记和标记簇?
- arm - uint32_t 在 CMSIS 数学文件中似乎是未知的?
- testing - 没有代码覆盖的 HttpParameterBinding
- git - Windows OneDrive 说 .gitattributes。文件是非法文件名?
- azure-devops - 在 Azure DevOps 中使用新的部署作业。找不到文物