Soenneker.Stripe.PaymentMethods
11.0.1316
Prefix Reserved
dotnet add package Soenneker.Stripe.PaymentMethods --version 11.0.1316
NuGet\Install-Package Soenneker.Stripe.PaymentMethods -Version 11.0.1316
<PackageReference Include="Soenneker.Stripe.PaymentMethods" Version="11.0.1316" />
<PackageVersion Include="Soenneker.Stripe.PaymentMethods" Version="11.0.1316" />
<PackageReference Include="Soenneker.Stripe.PaymentMethods" />
paket add Soenneker.Stripe.PaymentMethods --version 11.0.1316
#r "nuget: Soenneker.Stripe.PaymentMethods, 11.0.1316"
#:package Soenneker.Stripe.PaymentMethods@11.0.1316
#addin nuget:?package=Soenneker.Stripe.PaymentMethods&version=11.0.1316
#tool nuget:?package=Soenneker.Stripe.PaymentMethods&version=11.0.1316
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 | net11.0 is compatible. |
-
net11.0
- Soenneker.Stripe.Client (>= 11.0.1582)
- Soenneker.Stripe.Enums.PaymentMethodTypes (>= 11.0.96)
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.1316 | 0 | 11/15/2026 |
| 11.0.1315 | 47 | 11/14/2026 |
| 11.0.1314 | 175 | 11/11/2026 |
| 11.0.1313 | 81 | 11/11/2026 |
| 11.0.1312 | 96 | 11/11/2026 |
| 11.0.1311 | 84 | 11/11/2026 |
| 11.0.1310 | 107 | 11/11/2026 |
| 11.0.1309 | 89 | 11/11/2026 |
| 11.0.1308 | 84 | 11/11/2026 |
| 11.0.1307 | 99 | 11/11/2026 |
| 11.0.1306 | 110 | 11/11/2026 |
| 11.0.1305 | 438 | 11/4/2026 |
| 11.0.1304 | 182 | 11/3/2026 |
| 11.0.1303 | 111 | 11/3/2026 |
| 11.0.1302 | 117 | 11/3/2026 |
| 11.0.1301 | 104 | 11/3/2026 |
| 11.0.1300 | 115 | 11/2/2026 |
| 11.0.1299 | 139 | 11/2/2026 |
| 11.0.1298 | 131 | 11/2/2026 |
| 11.0.1297 | 182 | 10/31/2026 |
Update dependency Soenneker.Stripe.Client to 11.0.1582 (#1850)