【问题标题】:Stripe.NET add bank account using token to Stripe Managed AccountStripe.NET 使用令牌将银行账户添加到 Stripe 托管账户
【发布时间】:2017-11-05 18:04:55
【问题描述】:

我搜索了 Jayme Davis 的文档,但找不到如何使用令牌将银行账户添加到 Stripe 托管账户。在文档中添加银行帐户的唯一方法是使用 CustomerBankAccount 对象,该对象需要 CustomerID 作为参数,并且不适用于 AccountID(即托管帐户 ID)。我基本上想使用 Stripe.NET 和 C# 代码(来自 Stipe 的网站)提出这个请求。任何帮助将不胜感激!提前谢谢!

curl https://api.stripe.com/v1/accounts/acct_1032D82eZvKYlo2C/external_accounts \
   -u sk_test_xxxxxxxxxxxxxxxxxxxxxx: \
   -d external_account=btok_xxxxxxxxxxxxxxxxxxx

【问题讨论】:

    标签: c# stripe-payments stripe-connect stripe.net


    【解决方案1】:

    您可以为此使用ExternalBankAccount 属性并查看测试中的示例here

    var params = new StripeAccountUpdateOptions();
    params.ExternalBankAccount = new StripeAccountBankAccountOptions
    {
        TokenId = _token.Id
    }
    
    var accountService = new StripeAccountService();
    StripeAccount response = accountService.Update("acct_XXX", params);
    

    【讨论】:

      猜你喜欢
      • 2017-10-30
      • 1970-01-01
      • 2019-06-15
      • 2016-11-25
      • 2018-05-12
      • 1970-01-01
      • 2014-08-27
      • 2017-12-20
      • 1970-01-01
      相关资源
      最近更新 更多