Soenneker.Blazor.Stripe.Elements
4.0.765
Prefix Reserved
dotnet add package Soenneker.Blazor.Stripe.Elements --version 4.0.765
NuGet\Install-Package Soenneker.Blazor.Stripe.Elements -Version 4.0.765
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.765" />
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.765" />
<PackageReference Include="Soenneker.Blazor.Stripe.Elements" />
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.765
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Blazor.Stripe.Elements, 4.0.765"
#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.765
#: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.765
#tool nuget:?package=Soenneker.Blazor.Stripe.Elements&version=4.0.765
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net10.0
- Soenneker.Asyncs.Initializers (>= 4.0.45)
- Soenneker.Blazor.Extensions.EventCallback (>= 4.0.445)
- Soenneker.Blazor.Utils.InteropEventListener (>= 4.0.3926)
- Soenneker.Blazor.Utils.ResourceLoader (>= 4.0.1646)
- Soenneker.Dtos.Stripe.Error (>= 4.0.162)
- Soenneker.Enums.CurrencyCodes (>= 4.0.62)
- Soenneker.Quark.Components.Core.Cancellable (>= 4.0.63)
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.765 | 33 | 4/10/2026 |
| 4.0.764 | 38 | 4/8/2026 |
| 4.0.761 | 61 | 4/8/2026 |
| 4.0.760 | 51 | 4/8/2026 |
| 4.0.759 | 75 | 4/7/2026 |
| 4.0.758 | 76 | 4/7/2026 |
| 4.0.757 | 73 | 4/7/2026 |
| 4.0.756 | 81 | 4/7/2026 |
| 4.0.755 | 81 | 4/5/2026 |
| 4.0.754 | 90 | 4/3/2026 |
| 4.0.753 | 103 | 4/1/2026 |
| 4.0.752 | 82 | 4/1/2026 |
| 4.0.751 | 88 | 3/31/2026 |
| 4.0.750 | 86 | 3/31/2026 |
| 4.0.749 | 94 | 3/31/2026 |
| 4.0.747 | 87 | 3/31/2026 |
| 4.0.746 | 85 | 3/26/2026 |
| 4.0.745 | 81 | 3/26/2026 |
| 4.0.744 | 83 | 3/25/2026 |
| 4.0.743 | 82 | 3/23/2026 |
Loading failed
Update dependency Soenneker.Quark.Components.Core.Cancellable to 4.0.63 (#1327)