stripe-payments - 从 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.
但条纹文档说收件人服务协议是可用的。
谁能帮我弄清楚这个问题。
解决方案
这应该是可能的,或者至少在我使用基于美国的测试平台进行测试时它有效。您可能需要明确指定帐户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 平台来尝试自己。
推荐阅读
- python - 尝试删除数组的某些元素时出错(python)
- java - 如何使用 Eclipse 将我的控制台应用程序导出到 exe
- google-cloud-platform - 您如何更改 Google“监控”中“正常运行时间检查”的“检查 ID”?
- javascript - EditView 上的 React Admin 白页
- javascript - 在 CSS 显示网格中插入响应式全宽 div
- squarespace - Squarespace 导航定制
- r - 绘制数据集中的人数(观察)?
- r - 函数内部 gt 表中的 cols_label
- javascript - 在拆分之前检查是否为 Null - Javascript
- r - 如何将一个数据帧逐行拆分成多个数据帧,然后导出到excel?R