Soenneker.Stripe.PaymentMethods
4.0.1243
Prefix Reserved
dotnet add package Soenneker.Stripe.PaymentMethods --version 4.0.1243
NuGet\Install-Package Soenneker.Stripe.PaymentMethods -Version 4.0.1243
<PackageReference Include="Soenneker.Stripe.PaymentMethods" Version="4.0.1243" />
<PackageVersion Include="Soenneker.Stripe.PaymentMethods" Version="4.0.1243" />
<PackageReference Include="Soenneker.Stripe.PaymentMethods" />
paket add Soenneker.Stripe.PaymentMethods --version 4.0.1243
#r "nuget: Soenneker.Stripe.PaymentMethods, 4.0.1243"
#:package Soenneker.Stripe.PaymentMethods@4.0.1243
#addin nuget:?package=Soenneker.Stripe.PaymentMethods&version=4.0.1243
#tool nuget:?package=Soenneker.Stripe.PaymentMethods&version=4.0.1243
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.1507)
- Soenneker.Stripe.Enums.PaymentMethodTypes (>= 4.0.71)
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 |
|---|---|---|
| 4.0.1243 | 93 | 9/17/2026 |
| 4.0.1242 | 80 | 9/16/2026 |
| 4.0.1241 | 70 | 9/16/2026 |
| 4.0.1240 | 69 | 9/16/2026 |
| 4.0.1239 | 85 | 9/16/2026 |
| 4.0.1238 | 77 | 9/16/2026 |
| 4.0.1237 | 119 | 9/15/2026 |
| 4.0.1235 | 185 | 9/13/2026 |
| 4.0.1234 | 97 | 9/13/2026 |
| 4.0.1233 | 140 | 9/13/2026 |
| 4.0.1232 | 123 | 9/13/2026 |
| 4.0.1231 | 111 | 9/12/2026 |
| 4.0.1230 | 150 | 9/12/2026 |
| 4.0.1229 | 85 | 9/12/2026 |
| 4.0.1228 | 103 | 9/12/2026 |
| 4.0.1227 | 90 | 9/12/2026 |
| 4.0.1226 | 195 | 9/10/2026 |
| 4.0.1225 | 144 | 9/9/2026 |
| 4.0.1224 | 140 | 9/9/2026 |
| 4.0.1223 | 120 | 9/8/2026 |
Updated Multiple NuGet packages