Soenneker.Stripe.PaymentMethods 11.0.1334

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

Create, retrieve, update, attach, detach, and auto-page through Stripe payment methods with customer and type filtering.

Installation

dotnet add package Soenneker.Stripe.PaymentMethods

Configuration

{
  "Stripe": {
    "SecretKey": "sk_test_..."
  }
}

Usage

using Soenneker.Stripe.Enums.PaymentMethodTypes;
using Soenneker.Stripe.PaymentMethods.Abstract;
using Soenneker.Stripe.PaymentMethods.Registrars;
using Stripe;

services.AddStripePaymentMethodsUtilAsScoped();

List<PaymentMethod>? cards = await paymentMethodsUtil.GetAllByUserIdAndType(
    "cus_...",
    StripePaymentMethodType.Card,
    cancellationToken);

PaymentMethod? defaultCard = await paymentMethodsUtil.GetFirstByUserIdAndType(
    "cus_...",
    StripePaymentMethodType.Card,
    cancellationToken);

await paymentMethodsUtil.Attach(
    "pm_...",
    new PaymentMethodAttachOptions { Customer = "cus_..." },
    cancellationToken: cancellationToken);

GetAll, GetAllByUserIdAndType, and GetAllByUserIdAndTypes follow Stripe pagination and materialize every result, so use them carefully for large accounts. Despite its historical name, Delete detaches the payment method from its customer; it does not erase the payment method object from Stripe.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.PaymentMethods:

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.1359 105 12/3/2026
11.0.1358 109 12/3/2026
11.0.1357 92 12/3/2026
11.0.1356 69 12/3/2026
11.0.1355 59 12/3/2026
11.0.1354 55 12/3/2026
11.0.1353 64 12/3/2026
11.0.1352 84 12/2/2026
11.0.1349 105 12/2/2026
11.0.1348 73 12/2/2026
11.0.1347 120 12/2/2026
11.0.1346 122 12/2/2026
11.0.1345 91 12/2/2026
11.0.1344 120 12/1/2026
11.0.1343 110 12/1/2026
11.0.1342 130 12/1/2026
11.0.1341 122 12/1/2026
11.0.1340 99 12/1/2026
11.0.1339 113 12/1/2026
11.0.1334 137 11/30/2026
Loading failed

Updated Soenneker.Stripe.Client to 11.0.1600