Bitzsoft.Integrations.Payment.Stripe
1.0.0-alpha.10
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
<PackageReference Include="Bitzsoft.Integrations.Payment.Stripe" Version="1.0.0-alpha.10" />
<PackageVersion Include="Bitzsoft.Integrations.Payment.Stripe" Version="1.0.0-alpha.10" />
<PackageReference Include="Bitzsoft.Integrations.Payment.Stripe" />
paket add Bitzsoft.Integrations.Payment.Stripe --version 1.0.0-alpha.10
#r "nuget: Bitzsoft.Integrations.Payment.Stripe, 1.0.0-alpha.10"
#:package Bitzsoft.Integrations.Payment.Stripe@1.0.0-alpha.10
#addin nuget:?package=Bitzsoft.Integrations.Payment.Stripe&version=1.0.0-alpha.10&prerelease
#tool nuget:?package=Bitzsoft.Integrations.Payment.Stripe&version=1.0.0-alpha.10&prerelease
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:stripe 的 IntegrationCredentialKey 配置 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 只声明已实现的 IPaymentProvider 和
IWebhookVerifier 能力。
| Product | Versions 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. |
-
net10.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.Payment (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.Webhooks (>= 1.0.0-alpha.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Http (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.10)
-
net5.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.Payment (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.Webhooks (>= 1.0.0-alpha.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Http (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 5.0.0)
-
net8.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.Payment (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.0-alpha.10)
- Bitzsoft.Integrations.Webhooks (>= 1.0.0-alpha.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Http (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.10)
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 |