Soenneker.Stripe.PaymentMethods
4.0.1256
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Stripe.PaymentMethods --version 4.0.1256
NuGet\Install-Package Soenneker.Stripe.PaymentMethods -Version 4.0.1256
<PackageReference Include="Soenneker.Stripe.PaymentMethods" Version="4.0.1256" />
<PackageVersion Include="Soenneker.Stripe.PaymentMethods" Version="4.0.1256" />
<PackageReference Include="Soenneker.Stripe.PaymentMethods" />
paket add Soenneker.Stripe.PaymentMethods --version 4.0.1256
#r "nuget: Soenneker.Stripe.PaymentMethods, 4.0.1256"
#:package Soenneker.Stripe.PaymentMethods@4.0.1256
#addin nuget:?package=Soenneker.Stripe.PaymentMethods&version=4.0.1256
#tool nuget:?package=Soenneker.Stripe.PaymentMethods&version=4.0.1256
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 | 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.Stripe.Client (>= 4.0.1519)
- Soenneker.Stripe.Enums.PaymentMethodTypes (>= 4.0.74)
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.1335 | 0 | 11/30/2026 |
| 11.0.1334 | 0 | 11/30/2026 |
| 11.0.1333 | 0 | 11/30/2026 |
| 11.0.1332 | 0 | 11/29/2026 |
| 11.0.1331 | 0 | 11/29/2026 |
| 11.0.1330 | 256 | 11/21/2026 |
| 11.0.1329 | 171 | 11/19/2026 |
| 11.0.1327 | 145 | 11/19/2026 |
| 11.0.1326 | 110 | 11/18/2026 |
| 11.0.1325 | 115 | 11/18/2026 |
| 11.0.1324 | 135 | 11/18/2026 |
| 11.0.1322 | 121 | 11/18/2026 |
| 11.0.1321 | 125 | 11/18/2026 |
| 11.0.1320 | 125 | 11/17/2026 |
| 11.0.1319 | 155 | 11/15/2026 |
| 11.0.1318 | 128 | 11/15/2026 |
| 11.0.1317 | 117 | 11/15/2026 |
| 11.0.1316 | 156 | 11/15/2026 |
| 4.0.1256 | 162 | 10/11/2026 |
Fix release metadata shell injection