如何将 statement_descriptor 参数替换为 statement_descriptor_suffix 作为 Stripe 更新的一部分
how to replace the statement_descriptor parameter with statement_descriptor_suffix as part of Stripe update
我正在使用 stripe.net NuGet 包。作为 stripe 最新更新的一部分,我需要将 statement_descriptor 参数替换为 statement_descriptor_suffix
这里是NuGet中的StatementDescriptor
目前正在这样使用
var chargeOptions = new StripeChargeCreateOptions()
{
StatementDescriptor = statementDescriptor
};
由于包是 Noneditable 如何实现这一点,我需要等待 NuGet 包中的更新还是有其他方法吗?
do i need to wait for update in NuGet package
澄清一下,您使用的是 v15.3.0 的 stripe-dotnet,它已经很旧了。该软件包从那时起已经更新了很多次,并且已经支持 statement_descriptor_suffix
一段时间了:https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#27230---2019-08-08
您可以更新(这将是一个巨大的飞跃,您应该仔细阅读所有迁移文档 [0] 并广泛测试您的所有代码)。
或者您可以使用 ExtraParams 指定库不知道的参数。 [1]
chargeOptions.addExtraParam("statement_descriptor_suffix", statementDescriptor)
我正在使用 stripe.net NuGet 包。作为 stripe 最新更新的一部分,我需要将 statement_descriptor 参数替换为 statement_descriptor_suffix
这里是NuGet中的StatementDescriptor
目前正在这样使用
var chargeOptions = new StripeChargeCreateOptions()
{
StatementDescriptor = statementDescriptor
};
由于包是 Noneditable 如何实现这一点,我需要等待 NuGet 包中的更新还是有其他方法吗?
do i need to wait for update in NuGet package
澄清一下,您使用的是 v15.3.0 的 stripe-dotnet,它已经很旧了。该软件包从那时起已经更新了很多次,并且已经支持 statement_descriptor_suffix
一段时间了:https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#27230---2019-08-08
您可以更新(这将是一个巨大的飞跃,您应该仔细阅读所有迁移文档 [0] 并广泛测试您的所有代码)。 或者您可以使用 ExtraParams 指定库不知道的参数。 [1]
chargeOptions.addExtraParam("statement_descriptor_suffix", statementDescriptor)