Soenneker.Extensions.Stripe.Customer 11.0.143

Prefix Reserved
dotnet add package Soenneker.Extensions.Stripe.Customer --version 11.0.143
                    
NuGet\Install-Package Soenneker.Extensions.Stripe.Customer -Version 11.0.143
                    
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.143" />
                    
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.143" />
                    
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.143
                    
#r "nuget: Soenneker.Extensions.Stripe.Customer, 11.0.143"
                    
#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.143
                    
#: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.143
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Stripe.Customer&version=11.0.143
                    
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.143 0 11/14/2026
11.0.142 150 11/11/2026
11.0.141 88 11/11/2026
11.0.140 86 11/10/2026
11.0.139 242 11/3/2026
11.0.138 94 11/2/2026
11.0.137 111 10/31/2026
11.0.136 108 10/31/2026
11.0.135 131 10/27/2026
11.0.134 106 10/27/2026
11.0.133 98 10/27/2026
11.0.132 105 10/26/2026
11.0.131 95 10/26/2026
11.0.130 99 10/26/2026
4.0.128 125 10/24/2026
4.0.127 100 10/24/2026
4.0.126 455 10/14/2026
4.0.125 103 10/14/2026
4.0.120 104 10/12/2026
4.0.119 97 10/12/2026
Loading failed

Update dependency Soenneker.Stripe.OpenApiClient to 11.0.152 (#765)