Soenneker.Extensions.Stripe.Customer 11.0.148

Prefix Reserved
dotnet add package Soenneker.Extensions.Stripe.Customer --version 11.0.148
                    
NuGet\Install-Package Soenneker.Extensions.Stripe.Customer -Version 11.0.148
                    
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.Extensions.Stripe.Customer" Version="11.0.148" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Stripe.Customer" Version="11.0.148" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Stripe.Customer" />
                    
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.Extensions.Stripe.Customer --version 11.0.148
                    
#r "nuget: Soenneker.Extensions.Stripe.Customer, 11.0.148"
                    
#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.Extensions.Stripe.Customer@11.0.148
                    
#: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.Extensions.Stripe.Customer&version=11.0.148
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Stripe.Customer&version=11.0.148
                    
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.Extensions.Stripe.Customer

Retrieve the application user ID stored in a Stripe customer's metadata.

Installation

dotnet add package Soenneker.Extensions.Stripe.Customer

Usage

using Soenneker.Extensions.Stripe.Customer;

Stripe.Customer customer = await customerService.GetAsync(customerId);
string? userId = customer.GetUserId();

GetUserId() reads the exact, case-sensitive metadata key userId. It returns null when the customer, metadata dictionary, or key is missing. The stored value is returned unchanged, including an empty or whitespace-only string.

This package only reads the local Stripe.Customer object; it does not call Stripe, create metadata, validate the identifier, or confirm that the referenced application user exists. Store the value when creating or updating the customer:

var options = new CustomerCreateOptions
{
    Email = "ada@example.com",
    Metadata = new Dictionary<string, string>
    {
        ["userId"] = applicationUserId
    }
};
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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.148 70 11/21/2026
11.0.147 117 11/19/2026
11.0.146 70 11/18/2026
11.0.144 91 11/17/2026
11.0.143 113 11/14/2026
11.0.142 181 11/11/2026
11.0.141 107 11/11/2026
11.0.140 102 11/10/2026
11.0.139 249 11/3/2026
11.0.138 100 11/2/2026
11.0.137 123 10/31/2026
11.0.136 117 10/31/2026
11.0.135 136 10/27/2026
11.0.134 116 10/27/2026
11.0.133 102 10/27/2026
11.0.132 113 10/26/2026
11.0.131 100 10/26/2026
11.0.130 105 10/26/2026
4.0.128 131 10/24/2026
4.0.127 105 10/24/2026
Loading failed

Update dependency Soenneker.Stripe.OpenApiClient to 11.0.156 (#773)