You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于Stripe Connect Standard账户入驻及测试集成的技术咨询

Stripe Connect Standard账户入驻与测试问题解答

Stripe目前优先推荐使用Account Links处理所有账户入驻场景——不管是关联已有Stripe账户,还是创建新账户,都可以通过Account Links实现统一流程。OAuth属于旧版集成方案,虽然仍可正常使用,但官方已将Account Links作为主推方案,它能帮你简化代码逻辑,不用维护两套不同的入驻流程。

官方文档表述存在差异,是因为OAuth的文档还未完全下线,但从长期维护和集成效率来看,用Account Links统一处理新旧账户入驻是更优选择。

二、测试环节问题解决

1. 测试模式无法跳过手机号验证

测试模式下跳过验证的选项,需要通过创建Account Link时的参数配置开启:

  • 创建Standard账户时,需指定country、email,并请求必要的capabilities(如card_payments和transfers);
  • 生成Account Link时,设置collect参数为eventually_due,而非currently_due。这样测试流程中会出现跳过部分验证步骤的选项。

示例API调用(Python):

# 创建Standard账户
stripe.Account.create(
  type='standard',
  country='US',
  email='test_merchant@example.com',
  capabilities={
    'card_payments': {'requested': True},
    'transfers': {'requested': True},
  },
  settings={
    'dashboard': {'display_name': 'Test Merchant'}
  }
)

# 生成Account Link
stripe.AccountLink.create(
  account='acct_XXXXXX',
  refresh_url='https://your-domain.com/onboarding-refresh',
  return_url='https://your-domain.com/onboarding-complete',
  type='account_onboarding',
  collect='eventually_due'
)

2. 账户处于“受限”状态无法测试支付

测试模式下的Standard账户受限,是因为未完成基础身份验证。你可以用Stripe提供的测试数据完成验证:

  • 测试SSN:000-00-0000
  • 测试手机号:+14245551234
  • 测试地址:任意符合格式的美国地址(如123 Test St, San Francisco, CA 94103)

完成验证后,账户的capabilities会被激活,即可正常测试on_behalf_of等支付场景。另外,确保创建账户时已正确请求所需的支付/转账能力。

内容的提问来源于stack exchange,提问作者Grashopper

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 21:37:19