获取连接的条带化帐户的帐户ID [英] Get account ID of connected stripe account

查看:135
本文介绍了获取连接的条带化帐户的帐户ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行连接用户以通过我的应用程序接受付款的测试时,我将需要该帐户ID来向他们的帐户收费。

When I run a test for connecting a user to accept payments through my application, I will need the account id to charge their account.

Stripe\Token::create(
array("customer" => CUSTOMER_ID, "card" => CARD_ID),
array("stripe_account" => CONNECTED_STRIPE_ACCOUNT_ID) // id of the connected account
);

在此代码段(来自Stripe)中, CONNECTED_STRIPE_ACCOUNT_ID 表示以id开头的关于id的连接

In this snippet (from Stripe), the CONNECTED_STRIPE_ACCOUNT_ID implies the connecting about id which starts with acct_

我如何获得它?

谢谢,
Rich。

Thanks, Rich.

推荐答案

我来自Google搜索,遇到了类似问题。从OAUTH流程中实际上很容易获得,文档只是并不清楚它是哪个字段。简而言之,缺少的链接是 CONNECTED_STRIPE_ACCOUNT_ID 是您在OAUTH流结束时获得的 stripe_user_id 该帐户根据 https://stripe.com/docs/connect/standalone-accounts

I came here from a Google search with a similar issue. It is actually easy to get from the OAUTH flow, the documentation just does not make it clear which field it is. In short, the missing link is that the CONNECTED_STRIPE_ACCOUNT_ID is the stripe_user_id that you get at the end of the OAUTH flow when the account is connected as per https://stripe.com/docs/connect/standalone-accounts

在流程结束时的示例响应中

In their example response at the end of the flow

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

这篇关于获取连接的条带化帐户的帐户ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆