首页 > 解决方案 > 从 Stripe 返回“您不能在 FI 中指定不同的服务协议”

问题描述

我正在尝试在测试模式引用中创建条带连接帐户

service_agreement: 'recipient'

这里有我写的完整代码:

account = Stripe::Account.create(
        type: 'custom',
        business_type: 'company',
        email: account_params[:email],
        external_account: "btok_us_verified",
        capabilities: {
          transfers: {requested: true}
        },
        company: {
          name: "Test Company name 6", 
          tax_id: "000000000", 
        },
        tos_acceptance: {
          service_agreement: 'recipient',
          date: Time.now.to_i,
          ip: request.remote_ip,
        }
      )

在我拨打电话后,条纹返回了这个错误。

You cannot specify a different service agreement in FI.

但条纹文档说收件人服务协议是可用的。

谁能帮我弄清楚这个问题。

标签: stripe-paymentsruby-on-rails-6

解决方案


这应该是可能的,或者至少在我使用基于美国的测试平台进行测试时它有效。您可能需要明确指定帐户country=FI

account = Stripe::Account.create(
        type: 'custom',
        **country: 'FI',**
        business_type: 'company',
        email: account_params[:email],
        external_account: "btok_us_verified",
        capabilities: {
          transfers: {requested: true}
        },
        company: {
          name: "Test Company name 6", 
          tax_id: "000000000", 
        },
        tos_acceptance: {
          service_agreement: 'recipient',
          date: Time.now.to_i,
          ip: request.remote_ip,
        }
      )

如果这不能为您解决问题,我可以创建一个测试 FI 平台来尝试自己。


推荐阅读