Stripe :: InvalidRequestError :(状态400)(请求req_QDLWLR9e8EWU7s)收到未知参数:company [tax_id_provided]

时间:2019-06-21 11:02:46

标签: ruby-on-rails stripe-payments

我正在尝试更新account,提供tax_id后我收到了错误消息

  

Stripe :: InvalidRequestError:(状态400)(请求req_QDLWLR9e8EWU7s)   收到未知参数:公司[tax_id_provided]

这是代码示例

Stripe.api_key = 'xxxxx'
Stripe.api_version = '2019-05-16'
account = Stripe::Account.retrieve( 'acc_xxxx' )
  account.company = {
    name: "Test Business",
    tax_id: "876543210",
    address: {
      city: "TEXAS",
      line1: "49 Punchs Creek Road",
      postal_code: "4385",
      state: "Queensland",
      country: "AU"
      }
    }
account.save

没有运气的错误

  

Stripe :: InvalidRequestError:(状态400)(请求req_QDLWLR9e8EWU7s)   收到未知参数:公司[tax_id_provided]

我正在关注stripe account update ruby-api

ruby-version = 2.3.4
gem 'stripe'

任何帮助将不胜感激。谢谢

0 个答案:

没有答案