Soenneker.Blazor.Stripe.Elements 4.0.735

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

A modular, strongly-typed Blazor library for Stripe Elements � designed to provide first-class C# configuration and deep interop with Stripe.js. Built for modern Blazor projects using Stripe's Payment, Link Authentication, and Address Elements.

? Features

  • ?? Blazor-native components for <StripeElements>, <StripePaymentElement>, <StripeLinkAuthenticationElement>, and <StripeAddressElement>
  • ?? Fully configurable via C# � with strong typing for all supported options, including appearance, locale, currency, developer tools, and more
  • ?? Appearance API support with extensible theming and rule control
  • ?? Supports SetupIntents, on-submit hooks, and validation workflows
  • ?? Compatible with Stripe test environments and developer tooling
  • ?? Seamless async interop with Stripe.js lifecycle

<img src="https://github.com/user-attachments/assets/a2f8777a-02e0-40de-afd6-fe4d1211427b" width="80%"></img>

?? Installation

dotnet add package Soenneker.Blazor.Stripe.Elements

??? Usage

1. Register Stripe in your Blazor project

builder.Services.AddStripeElementsInteropAsScoped();

2. Add the components to your Razor page

<StripeElements @ref="_stripeElements" StripeElementsConfiguration="_config">

    <StripeAddressElement />
    <StripeLinkAuthenticationElement />
    <StripePaymentElement />

    <Button Clicked="Submit">Submit</Button>
</StripeElements>

3. Configure Stripe using C#

_config = new StripeElementsConfiguration
{
    PublishableKey = "pk_test_...",
    ElementsOptions = new StripeElementsOptions
    {
        Locale = "auto",
        Currency = CurrencyCode.Usd,
        Mode = StripeElementsMode.Setup,
        Appearance = new StripeAppearance
        {
            Theme = StripeElementsTheme.Flat,
            Variables = new StripeAppearanceVariablesExtended
            {
                ColorPrimary = "#0570de",
                BorderRadius = "4px"
            }
        }
    },
    AddressOptions = new StripeAddressOptions
    {
        Mode = StripeAddressMode.Billing,
        AllowedCountries = ["US", "CA"],
        Fields = new StripeAddressFields
        {
            Phone = StripeAddressFieldsPhoneOption.Auto
        }
    }
};

? Components

Component Purpose
StripeElements Wrapper and manager for all child elements
StripePaymentElement Handles card and express payments
StripeLinkAuthenticationElement Collects email and links with Stripe Link
StripeAddressElement Collects billing or shipping address
StripeElementsConfiguration Full C# model to control everything

?? Official Stripe Docs

Product 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. 
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
4.0.735 22 3/14/2026
4.0.734 30 3/14/2026
4.0.733 30 3/13/2026
4.0.732 29 3/13/2026
4.0.731 32 3/13/2026
4.0.729 33 3/13/2026
4.0.728 36 3/13/2026
4.0.725 31 3/13/2026
4.0.723 32 3/13/2026
4.0.720 33 3/13/2026
4.0.717 37 3/12/2026
4.0.715 37 3/12/2026
4.0.714 31 3/12/2026
4.0.713 34 3/12/2026
4.0.712 31 3/11/2026
4.0.711 37 3/11/2026
4.0.710 32 3/11/2026
4.0.709 34 3/11/2026
4.0.707 35 3/11/2026
4.0.706 56 3/11/2026
Loading failed

Update dependency Soenneker.Blazor.Utils.ResourceLoader to 4.0.1629 (#1257)