Soenneker.Stripe.Subscriptions
11.0.1446
Prefix Reserved
dotnet add package Soenneker.Stripe.Subscriptions --version 11.0.1446
NuGet\Install-Package Soenneker.Stripe.Subscriptions -Version 11.0.1446
<PackageReference Include="Soenneker.Stripe.Subscriptions" Version="11.0.1446" />
<PackageVersion Include="Soenneker.Stripe.Subscriptions" Version="11.0.1446" />
<PackageReference Include="Soenneker.Stripe.Subscriptions" />
paket add Soenneker.Stripe.Subscriptions --version 11.0.1446
#r "nuget: Soenneker.Stripe.Subscriptions, 11.0.1446"
#:package Soenneker.Stripe.Subscriptions@11.0.1446
#addin nuget:?package=Soenneker.Stripe.Subscriptions&version=11.0.1446
#tool nuget:?package=Soenneker.Stripe.Subscriptions&version=11.0.1446
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 | net11.0 is compatible. |
-
net11.0
- Soenneker.Stripe.Client (>= 11.0.1559)
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 |
|---|---|---|
| 11.0.1446 | 0 | 10/31/2026 |
| 11.0.1444 | 46 | 10/30/2026 |
| 11.0.1443 | 104 | 10/28/2026 |
| 11.0.1442 | 99 | 10/27/2026 |
| 11.0.1441 | 55 | 10/27/2026 |
| 11.0.1440 | 48 | 10/27/2026 |
| 11.0.1439 | 143 | 10/27/2026 |
| 11.0.1438 | 117 | 10/27/2026 |
| 11.0.1436 | 156 | 10/26/2026 |
| 11.0.1435 | 82 | 10/26/2026 |
| 11.0.1434 | 157 | 10/26/2026 |
| 4.0.1433 | 121 | 10/26/2026 |
| 4.0.1432 | 91 | 10/25/2026 |
| 4.0.1431 | 173 | 10/25/2026 |
| 4.0.1430 | 161 | 10/24/2026 |
| 4.0.1429 | 104 | 10/24/2026 |
| 4.0.1428 | 397 | 10/15/2026 |
| 4.0.1427 | 98 | 10/14/2026 |
| 4.0.1426 | 125 | 10/14/2026 |
| 4.0.1425 | 103 | 10/14/2026 |
Fix GET calls for updated Stripe client signatures