Soenneker.Extensions.Stripe.Customer 11.0.139

Prefix Reserved
dotnet add package Soenneker.Extensions.Stripe.Customer --version 11.0.139
                    
NuGet\Install-Package Soenneker.Extensions.Stripe.Customer -Version 11.0.139
                    
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.139" />
                    
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.139" />
                    
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.139
                    
#r "nuget: Soenneker.Extensions.Stripe.Customer, 11.0.139"
                    
#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.139
                    
#: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.139
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Stripe.Customer&version=11.0.139
                    
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.139 37 11/3/2026
11.0.138 52 11/2/2026
11.0.137 71 10/31/2026
11.0.136 68 10/31/2026
11.0.135 122 10/27/2026
11.0.134 100 10/27/2026
11.0.133 89 10/27/2026
11.0.132 101 10/26/2026
11.0.131 90 10/26/2026
11.0.130 90 10/26/2026
4.0.128 114 10/24/2026
4.0.127 95 10/24/2026
4.0.126 405 10/14/2026
4.0.125 98 10/14/2026
4.0.120 99 10/12/2026
4.0.119 93 10/12/2026
4.0.118 115 10/11/2026
4.0.117 288 10/1/2026
4.0.116 142 9/24/2026
4.0.115 260 9/15/2026
Loading failed

Update dependency Soenneker.Stripe.OpenApiClient to 11.0.149 (#748)