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

This is a prerelease version of Bitzsoft.Integrations.Payment.Stripe.
dotnet add package Bitzsoft.Integrations.Payment.Stripe --version 1.0.0-alpha.10
                    
NuGet\Install-Package Bitzsoft.Integrations.Payment.Stripe -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.Stripe" 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.Stripe" Version="1.0.0-alpha.10" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.Payment.Stripe" />
                    
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.Stripe --version 1.0.0-alpha.10
                    
#r "nuget: Bitzsoft.Integrations.Payment.Stripe, 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.Stripe@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.Stripe&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.Payment.Stripe&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Tool

Bitzsoft.Integrations.Payment.Stripe

Stripe 支付连接器,支持 Checkout Session 下单、查询、关闭、退款和 Webhook 回调验签,目标框架为 net5.0;net8.0;net10.0

Webhook Gateway

除原有 IPaymentProvider.VerifyCallbackAsync 兼容入口外,本包会注册 IWebhookVerifier,可接入 Bitzsoft.Integrations.Webhooks 的原始字节验签、 防重放、幂等 Inbox、重试和 DLQ。

单租户兼容配置:

services.AddBitzsoftStripePayment(options =>
{
    options.SecretKey = configuration["Stripe:SecretKey"]!;
    options.WebhookSecret = configuration["Stripe:WebhookSecret"]!;
});
services.AddInMemoryWebhookInfrastructure(); // 仅开发/单实例测试

多租户宿主应设置 StripeOptions.UseTenantWebhookCredentials = true,并按 Payment:stripeIntegrationCredentialKey 配置 WebhookSecret 字段:

services.AddBitzsoftStripePayment(options =>
{
    options.SecretKey = "unused-by-webhook-verifier";
    options.UseTenantWebhookCredentials = true;
});

该模式下缺失租户凭据会直接失败,不会回退到全局 WebhookSecret。默认 false 仅用于兼容原有单租户配置。

宿主以可信 endpoint 解析租户后调用 Gateway:

var route = new WebhookRoute(
    tenantId,
    "Payment:stripe",
    endpointId,
    region: "global",
    environment: "Live");

var result = await gateway.ReceiveAsync(
    route,
    new WebhookRequest(rawBody, headers, contentType: "application/json"),
    cancellationToken);

Stripe Provider Descriptor 只声明已实现的 IPaymentProviderIWebhookVerifier 能力。

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 (1)

Showing the top 1 NuGet packages that depend on Bitzsoft.Integrations.Payment.Stripe:

Package Downloads
Bitzsoft.Integrations.Payment.All

支付聚合包 — 包含支付宝 / 微信支付 / Stripe 全部实现

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.10 44 7/26/2026
1.0.0-alpha.9 297 7/12/2026