簡體   English   中英

Stripe.NET使用令牌將銀行帳戶添加到Stripe托管帳戶

[英]Stripe.NET add bank account using token to Stripe Managed Account

我搜索了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

您可以為此使用ExternalBankAccount屬性,並在此處查看測試示例

var params = new StripeAccountUpdateOptions();
params.ExternalBankAccount = new StripeAccountBankAccountOptions
{
    TokenId = _token.Id
}

var accountService = new StripeAccountService();
StripeAccount response = accountService.Update("acct_XXX", params);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM