Soenneker.Stripe.Subscriptions
4.0.1365
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Stripe.Subscriptions --version 4.0.1365
NuGet\Install-Package Soenneker.Stripe.Subscriptions -Version 4.0.1365
<PackageReference Include="Soenneker.Stripe.Subscriptions" Version="4.0.1365" />
<PackageVersion Include="Soenneker.Stripe.Subscriptions" Version="4.0.1365" />
<PackageReference Include="Soenneker.Stripe.Subscriptions" />
paket add Soenneker.Stripe.Subscriptions --version 4.0.1365
#r "nuget: Soenneker.Stripe.Subscriptions, 4.0.1365"
#:package Soenneker.Stripe.Subscriptions@4.0.1365
#addin nuget:?package=Soenneker.Stripe.Subscriptions&version=4.0.1365
#tool nuget:?package=Soenneker.Stripe.Subscriptions&version=4.0.1365
Soenneker.Stripe.Subscriptions
Create, retrieve, search, update, reactivate, and cancel Stripe subscriptions, including application-user metadata lookup and account-wide operations.
Installation
dotnet add package Soenneker.Stripe.Subscriptions
Configuration
{
"Stripe": {
"SecretKey": "sk_test_..."
}
}
Usage
using Soenneker.Stripe.Subscriptions.Abstract;
using Soenneker.Stripe.Subscriptions.Registrars;
using Stripe;
services.AddStripeSubscriptionsUtilAsScoped();
Subscription? subscription = await subscriptionsUtil.Create(
customerId: "cus_...",
priceId: "price_...",
userId: applicationUserId,
defaultPaymentMethodId: "pm_...",
cancellationToken: cancellationToken);
await subscriptionsUtil.CancelAtPeriodEnd(
subscription!.Id,
cancellationToken);
The convenience Create overload stores userId in Stripe metadata, creates one price item, disables automatic tax, and optionally sets a trial end. GetByUserId searches that metadata and returns the first match.
UpdatePrice replaces the price on the subscription's first item without proration. UpdateBillingAnchor and UpdateBillingAnchorForAll set trial_end, which also moves Stripe's billing anchor and affects trial behavior.
GetAll, GetByCustomerId, and the account-wide mutation helpers auto-page through all matching subscriptions. CancelById and CancelAll cancel immediately; CancelAtPeriodEnd preserves service through the current period. Treat CancelAll and UpdateBillingAnchorForAll as destructive account-wide operations.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Soenneker.Extensions.DateTime (>= 4.0.1795)
- Soenneker.Stripe.Client (>= 4.0.1484)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Stripe.Subscriptions:
| Package | Downloads |
|---|---|
|
Soenneker.Stripe.Suite
Bundle and register Soenneker's Stripe customer, payment, invoice-item, and subscription libraries. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.1371 | 46 | 9/10/2026 |
| 4.0.1370 | 53 | 9/9/2026 |
| 4.0.1369 | 62 | 9/9/2026 |
| 4.0.1368 | 54 | 9/9/2026 |
| 4.0.1367 | 45 | 9/9/2026 |
| 4.0.1366 | 53 | 9/8/2026 |
| 4.0.1365 | 119 | 9/8/2026 |
| 4.0.1364 | 70 | 9/8/2026 |
| 4.0.1363 | 85 | 9/8/2026 |
| 4.0.1362 | 120 | 9/8/2026 |
| 4.0.1361 | 93 | 9/8/2026 |
| 4.0.1359 | 117 | 9/7/2026 |
| 4.0.1358 | 126 | 9/7/2026 |
| 4.0.1357 | 89 | 9/7/2026 |
| 4.0.1356 | 114 | 9/7/2026 |
| 4.0.1355 | 136 | 9/5/2026 |
| 4.0.1354 | 137 | 9/5/2026 |
| 4.0.1353 | 89 | 9/4/2026 |
| 4.0.1352 | 123 | 9/4/2026 |
| 4.0.1351 | 104 | 9/4/2026 |
Update dependency Soenneker.Extensions.DateTime to 4.0.1795 (#1894)