Soenneker.Stripe.PaymentMethods
4.0.1279
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Stripe.PaymentMethods --version 4.0.1279
NuGet\Install-Package Soenneker.Stripe.PaymentMethods -Version 4.0.1279
<PackageReference Include="Soenneker.Stripe.PaymentMethods" Version="4.0.1279" />
<PackageVersion Include="Soenneker.Stripe.PaymentMethods" Version="4.0.1279" />
<PackageReference Include="Soenneker.Stripe.PaymentMethods" />
paket add Soenneker.Stripe.PaymentMethods --version 4.0.1279
#r "nuget: Soenneker.Stripe.PaymentMethods, 4.0.1279"
#:package Soenneker.Stripe.PaymentMethods@4.0.1279
#addin nuget:?package=Soenneker.Stripe.PaymentMethods&version=4.0.1279
#tool nuget:?package=Soenneker.Stripe.PaymentMethods&version=4.0.1279
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.1545)
- Soenneker.Stripe.Enums.PaymentMethodTypes (>= 4.0.89)
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.1294 | 0 | 10/28/2026 |
| 11.0.1293 | 32 | 10/27/2026 |
| 11.0.1292 | 42 | 10/27/2026 |
| 11.0.1291 | 45 | 10/27/2026 |
| 11.0.1290 | 44 | 10/27/2026 |
| 11.0.1289 | 71 | 10/27/2026 |
| 11.0.1288 | 42 | 10/27/2026 |
| 11.0.1287 | 75 | 10/27/2026 |
| 11.0.1286 | 72 | 10/26/2026 |
| 11.0.1285 | 60 | 10/26/2026 |
| 11.0.1284 | 49 | 10/26/2026 |
| 11.0.1283 | 61 | 10/26/2026 |
| 4.0.1282 | 168 | 10/25/2026 |
| 4.0.1281 | 60 | 10/24/2026 |
| 4.0.1280 | 125 | 10/24/2026 |
| 4.0.1279 | 53 | 10/24/2026 |
| 4.0.1278 | 372 | 10/15/2026 |
| 4.0.1277 | 85 | 10/15/2026 |
| 4.0.1276 | 85 | 10/14/2026 |
| 4.0.1275 | 114 | 10/14/2026 |
Migrate Stripe operations to the generated OpenAPI client