当 `stripe_dashboard[type]=none` 且 `requirement_collection=stripe` 时,Stripe 必须承担负余额或退款和退款

问题描述 投票:0回答:1

我目前开始使用 Stripe.net 库,并且正在为卖家和买家创建一个在线市场。

我的用户界面中有这个,其中用户界面从用户那里获取一些信息:

enter image description here

我在 .NET 中使用它来引导用户:

StripeConfiguration.ApiKey = "xxxx";
var options = new AccountCreateOptions
{
Country = data.country,
Email = data.businessEmail,
Capabilities = new AccountCapabilitiesOptions()
{
    CardPayments = new AccountCapabilitiesCardPaymentsOptions(){ Requested = true },
    Transfers = new AccountCapabilitiesTransfersOptions { Requested = true },
},
Controller = new AccountControllerOptions
{
    Fees = new AccountControllerFeesOptions { Payer = "application" },
    Losses = new AccountControllerLossesOptions { Payments = "application" },
    StripeDashboard = new AccountControllerStripeDashboardOptions
    {
        Type = "none",
    },
    RequirementCollection = "stripe"
},
};
var service = new AccountService();
service.Create(options);

但我不断收到此错误:

'When `stripe_dashboard[type]=none` and `requirement_collection=stripe`, Stripe must be liable for negative balances or refunds and chargebacks.'

我设置了requirement_collection=stripe,那么我哪里出错了?

我有一个已连接的帐户,我已将其设置为标准。

c# .net stripe-payments
1个回答
0
投票

错误信息表明Stripe必须承担损失责任。您的代码明确通过了

Losses = new AccountControllerLossesOptions { Payments = "application" },
,这意味着您要让自己(您的应用程序)对这些损失负责。目前不支持此选项组合。

针对该损失责任切换到

stripe
,它应该按预期工作。

© www.soinside.com 2019 - 2024. All rights reserved.