Soenneker.Stripe.Subscriptions 4.0.1400

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Stripe.Subscriptions --version 4.0.1400
                    
NuGet\Install-Package Soenneker.Stripe.Subscriptions -Version 4.0.1400
                    
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="Soenneker.Stripe.Subscriptions" Version="4.0.1400" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Stripe.Subscriptions" Version="4.0.1400" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Stripe.Subscriptions" />
                    
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 Soenneker.Stripe.Subscriptions --version 4.0.1400
                    
#r "nuget: Soenneker.Stripe.Subscriptions, 4.0.1400"
                    
#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 Soenneker.Stripe.Subscriptions@4.0.1400
                    
#: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=Soenneker.Stripe.Subscriptions&version=4.0.1400
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Stripe.Subscriptions&version=4.0.1400
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
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 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.1405 0 10/1/2026
4.0.1404 0 10/1/2026
4.0.1403 111 9/29/2026
4.0.1402 66 9/29/2026
4.0.1401 135 9/26/2026
4.0.1400 101 9/26/2026
4.0.1399 97 9/25/2026
4.0.1398 113 9/25/2026
4.0.1397 79 9/25/2026
4.0.1396 109 9/25/2026
4.0.1395 78 9/24/2026
4.0.1394 132 9/24/2026
4.0.1393 274 9/17/2026
4.0.1392 110 9/16/2026
4.0.1391 107 9/16/2026
4.0.1390 115 9/16/2026
4.0.1389 93 9/16/2026
4.0.1388 90 9/16/2026
4.0.1387 132 9/16/2026
4.0.1386 132 9/15/2026
Loading failed

Update dependency Soenneker.Stripe.Client to 4.0.1513 (#1942)