Bitzsoft.Integrations.Payment.All 1.0.0-alpha.10

This is a prerelease version of Bitzsoft.Integrations.Payment.All.
dotnet add package Bitzsoft.Integrations.Payment.All --version 1.0.0-alpha.10
                    
NuGet\Install-Package Bitzsoft.Integrations.Payment.All -Version 1.0.0-alpha.10
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bitzsoft.Integrations.Payment.All" Version="1.0.0-alpha.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.Payment.All" Version="1.0.0-alpha.10" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.Payment.All" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bitzsoft.Integrations.Payment.All --version 1.0.0-alpha.10
                    
#r "nuget: Bitzsoft.Integrations.Payment.All, 1.0.0-alpha.10"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bitzsoft.Integrations.Payment.All@1.0.0-alpha.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitzsoft.Integrations.Payment.All&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.Payment.All&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Tool

Bitzsoft.Integrations.Payment.All

支付聚合包,按配置节注册支付宝、微信支付和 Stripe,支持 net5.0;net8.0;net10.0

注册

builder.Services.AddBitzsoftPaymentAll(builder.Configuration, "Payment");

只有存在配置节的 Provider 会注册。

多 Provider 路由

using Bitzsoft.Integrations.Core;
using Bitzsoft.Integrations.Payment;

public sealed class CheckoutService(
    IIntegrationProviderResolver<IPaymentProvider> providers)
{
    public IPaymentProvider Resolve(string providerId)
        => providers.GetRequired(providerId);
}

稳定 ID 为 alipaywechatpaystripe。直接注入 IPaymentProvider 只保留给单 Provider 应用兼容使用;多 Provider 应用不要依赖注册顺序。

IIntegrationProviderCatalog 可枚举当前配置的 Provider,并读取 API、 鉴权、地区、环境、稳定性和限制元数据。

RequestLogging

正文默认完整保留,包括兆级第三方响应。MaxInMemoryBodyBytes 只控制正文 何时从内存切换到加密临时文件:

services.AddRequestLogging<MyRequestLogStore>(options =>
{
    options.MaxInMemoryBodyBytes = 64 * 1024;
    // options.MaxLoggedBodyLength = 8192; // 只有业务明确接受截断时才设置
});
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.10 41 7/26/2026
1.0.0-alpha.9 308 7/12/2026