Soenneker.Blazor.Stripe.Elements 3.0.340

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Blazor.Stripe.Elements --version 3.0.340
                    
NuGet\Install-Package Soenneker.Blazor.Stripe.Elements -Version 3.0.340
                    
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="3.0.340" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Stripe.Elements" Version="3.0.340" />
                    
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 3.0.340
                    
#r "nuget: Soenneker.Blazor.Stripe.Elements, 3.0.340"
                    
#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@3.0.340
                    
#: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=3.0.340
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Stripe.Elements&version=3.0.340
                    
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 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 net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
3.0.358 10 8/17/2025
3.0.357 10 8/17/2025
3.0.356 77 8/15/2025
3.0.355 74 8/15/2025
3.0.354 82 8/15/2025
3.0.353 83 8/15/2025
3.0.352 94 8/14/2025
3.0.351 97 8/12/2025
3.0.350 92 8/12/2025
3.0.349 91 8/12/2025
3.0.348 91 8/11/2025
3.0.347 93 8/11/2025
3.0.346 94 8/11/2025
3.0.345 86 8/11/2025
3.0.344 86 8/11/2025
3.0.343 87 8/11/2025
3.0.342 92 8/11/2025
3.0.341 88 8/11/2025
3.0.340 84 8/11/2025
3.0.339 87 8/11/2025
3.0.338 86 8/11/2025
3.0.337 170 8/6/2025
3.0.336 168 8/5/2025
3.0.335 171 8/5/2025
3.0.334 167 8/5/2025
3.0.333 167 8/5/2025
3.0.332 169 8/5/2025
3.0.331 169 8/5/2025
3.0.330 170 8/5/2025
3.0.329 89 7/29/2025
3.0.328 91 7/29/2025
3.0.327 436 7/24/2025
3.0.326 169 7/9/2025
3.0.325 133 7/9/2025
3.0.324 130 7/9/2025
3.0.323 143 7/9/2025
3.0.322 132 7/9/2025
3.0.321 136 7/9/2025
3.0.320 135 7/8/2025
3.0.319 129 7/8/2025
3.0.318 193 7/3/2025
3.0.317 130 7/3/2025
3.0.316 131 7/3/2025
3.0.315 148 7/1/2025
3.0.314 133 6/28/2025
3.0.313 87 6/28/2025
3.0.312 91 6/28/2025
3.0.311 63 6/28/2025
3.0.310 64 6/28/2025
3.0.309 61 6/28/2025
3.0.308 59 6/28/2025
3.0.307 61 6/27/2025
3.0.306 60 6/27/2025
3.0.305 72 6/27/2025
3.0.304 70 6/27/2025
3.0.303 74 6/27/2025
3.0.302 135 6/25/2025
3.0.301 136 6/25/2025
3.0.300 149 6/23/2025
3.0.298 393 6/11/2025
3.0.297 295 6/11/2025
3.0.296 284 6/11/2025
3.0.295 286 6/11/2025
3.0.294 282 6/11/2025
3.0.293 279 6/10/2025
3.0.292 280 6/10/2025
3.0.291 275 6/10/2025
3.0.290 285 6/10/2025
3.0.289 201 6/3/2025
3.0.288 147 6/3/2025
3.0.287 170 5/28/2025
3.0.286 142 5/28/2025
3.0.285 141 5/27/2025
3.0.284 147 5/27/2025
3.0.283 142 5/27/2025
3.0.282 144 5/27/2025
3.0.281 141 5/27/2025
3.0.280 152 5/27/2025
3.0.279 141 5/27/2025
3.0.278 149 5/27/2025
3.0.277 141 5/27/2025
3.0.276 140 5/27/2025
3.0.275 149 5/26/2025
3.0.274 98 5/25/2025
3.0.273 103 5/25/2025
3.0.272 81 5/23/2025
3.0.271 96 5/23/2025
3.0.270 100 5/23/2025
3.0.269 111 5/23/2025
3.0.268 111 5/23/2025
3.0.267 119 5/23/2025
3.0.266 121 5/23/2025
3.0.265 125 5/23/2025
3.0.264 126 5/23/2025
3.0.263 126 5/23/2025
3.0.262 138 5/23/2025
3.0.261 132 5/23/2025
3.0.260 136 5/23/2025
3.0.259 143 5/22/2025
3.0.258 179 5/19/2025
3.0.257 145 5/18/2025
3.0.256 103 5/18/2025
3.0.255 230 5/15/2025
3.0.254 230 5/14/2025
3.0.253 243 5/14/2025
3.0.252 223 5/14/2025
3.0.251 232 5/14/2025
3.0.250 236 5/13/2025
3.0.249 249 5/13/2025
3.0.248 166 5/8/2025
3.0.247 142 5/8/2025
3.0.246 146 5/8/2025
3.0.245 157 5/8/2025
3.0.244 147 5/8/2025
3.0.243 145 5/8/2025
3.0.242 141 5/8/2025
3.0.241 148 5/8/2025
3.0.240 144 5/8/2025
3.0.239 147 5/8/2025
3.0.238 146 5/7/2025
3.0.237 143 5/7/2025
3.0.236 159 5/7/2025
3.0.235 150 5/7/2025
3.0.234 147 5/6/2025
3.0.233 149 5/6/2025
3.0.232 140 5/6/2025
3.0.231 147 5/6/2025
3.0.230 146 5/6/2025
3.0.229 142 5/6/2025
3.0.228 141 5/6/2025
3.0.227 138 5/6/2025
3.0.226 136 5/6/2025
3.0.225 141 5/6/2025
3.0.224 149 5/6/2025
3.0.223 147 5/6/2025
3.0.222 142 5/5/2025
3.0.221 147 5/5/2025
3.0.220 143 5/5/2025
3.0.219 146 5/5/2025
3.0.218 139 5/5/2025
3.0.217 141 5/5/2025
3.0.216 147 5/5/2025
3.0.215 147 5/5/2025
3.0.214 151 5/5/2025
3.0.213 141 5/5/2025
3.0.212 156 5/5/2025
3.0.211 146 5/5/2025
3.0.210 141 5/5/2025
3.0.209 145 5/5/2025
3.0.208 140 5/5/2025
3.0.207 139 5/5/2025
3.0.206 144 5/5/2025
3.0.203 141 5/5/2025
3.0.202 146 5/5/2025
3.0.201 141 5/4/2025
3.0.200 149 5/4/2025
3.0.199 152 5/4/2025
3.0.198 69 5/3/2025
3.0.197 87 5/2/2025
3.0.196 87 5/2/2025
3.0.195 90 5/2/2025
3.0.194 89 5/2/2025
3.0.193 98 5/2/2025
3.0.192 97 5/2/2025
3.0.191 92 5/2/2025
3.0.190 89 5/2/2025
3.0.189 85 5/2/2025
3.0.188 197 4/29/2025
3.0.187 140 4/27/2025
3.0.186 89 4/26/2025
3.0.185 77 4/26/2025
3.0.184 94 4/26/2025
3.0.183 167 4/24/2025
3.0.182 270 4/10/2025
3.0.181 205 4/9/2025
3.0.180 168 4/9/2025
3.0.179 171 4/9/2025
3.0.178 171 4/9/2025
3.0.177 160 4/8/2025
3.0.176 157 4/8/2025
3.0.175 157 4/8/2025
3.0.174 160 4/8/2025
3.0.173 163 4/8/2025
3.0.172 161 4/8/2025
3.0.171 164 4/8/2025
3.0.170 171 4/8/2025
3.0.169 161 4/8/2025
3.0.168 160 4/8/2025
3.0.167 154 4/8/2025
3.0.166 166 4/8/2025
3.0.165 164 4/8/2025
3.0.164 161 4/8/2025
3.0.163 158 4/8/2025
3.0.162 157 4/8/2025
3.0.161 161 4/8/2025
3.0.160 166 4/8/2025
3.0.159 161 4/8/2025
3.0.158 159 4/8/2025
3.0.157 162 4/8/2025
3.0.156 153 4/8/2025
3.0.155 165 4/8/2025
3.0.154 174 4/7/2025
3.0.153 175 4/7/2025
3.0.152 154 4/7/2025
3.0.151 166 4/7/2025
3.0.150 177 4/7/2025
3.0.149 169 4/7/2025
3.0.148 167 4/7/2025
3.0.147 165 4/7/2025
3.0.146 173 4/7/2025
3.0.145 169 4/7/2025
3.0.144 165 4/7/2025
3.0.143 178 4/7/2025
3.0.142 169 4/7/2025
3.0.141 177 4/7/2025
3.0.140 162 4/7/2025
3.0.139 158 4/7/2025
3.0.138 167 4/7/2025
3.0.137 176 4/7/2025
3.0.136 169 4/7/2025
3.0.135 170 4/7/2025
3.0.134 179 4/7/2025
3.0.133 168 4/7/2025
3.0.132 174 4/7/2025
3.0.131 171 4/7/2025
3.0.130 170 4/7/2025
3.0.129 166 4/7/2025
3.0.128 170 4/7/2025
3.0.127 164 4/7/2025
3.0.126 166 4/7/2025
3.0.125 164 4/7/2025
3.0.124 162 4/7/2025
3.0.123 157 4/7/2025
3.0.122 165 4/7/2025
3.0.121 162 4/6/2025
3.0.120 157 4/6/2025
3.0.119 157 4/6/2025
3.0.118 160 4/6/2025
3.0.117 160 4/6/2025
3.0.116 173 4/6/2025
3.0.115 167 4/6/2025
3.0.114 168 4/6/2025
3.0.113 167 4/6/2025
3.0.112 137 4/6/2025
3.0.111 131 4/6/2025
3.0.110 134 4/6/2025
3.0.109 142 4/6/2025
3.0.108 137 4/6/2025
3.0.107 144 4/6/2025
3.0.106 146 4/6/2025
3.0.105 143 4/6/2025
3.0.104 120 4/6/2025
3.0.103 111 4/6/2025
3.0.102 121 4/6/2025
3.0.101 108 4/6/2025
3.0.100 113 4/6/2025
3.0.99 111 4/6/2025
3.0.98 122 4/6/2025
3.0.97 109 4/6/2025
3.0.96 123 4/6/2025
3.0.95 117 4/6/2025
3.0.94 131 4/6/2025
3.0.93 115 4/5/2025
3.0.92 97 4/5/2025
3.0.91 89 4/5/2025
3.0.90 106 4/5/2025
3.0.89 89 4/5/2025
3.0.88 95 4/5/2025
3.0.87 98 4/5/2025
3.0.86 94 4/5/2025
3.0.85 97 4/5/2025
3.0.84 90 4/5/2025
3.0.83 94 4/5/2025
3.0.82 94 4/5/2025
3.0.81 101 4/5/2025
3.0.80 84 4/5/2025
3.0.79 92 4/5/2025
3.0.78 91 4/5/2025
3.0.77 99 4/5/2025
3.0.76 101 4/4/2025
3.0.75 104 4/4/2025
3.0.74 143 4/4/2025
3.0.73 138 4/4/2025
3.0.72 149 4/4/2025
3.0.71 150 4/4/2025
3.0.70 156 4/4/2025
3.0.69 151 4/4/2025
3.0.68 182 4/4/2025
3.0.67 157 4/4/2025
3.0.66 174 4/4/2025
3.0.65 161 4/4/2025
3.0.64 159 4/2/2025
3.0.63 148 4/1/2025
3.0.62 156 4/1/2025
3.0.61 158 4/1/2025
3.0.60 158 4/1/2025
3.0.59 151 4/1/2025
3.0.58 158 4/1/2025
3.0.57 148 4/1/2025
3.0.56 159 4/1/2025
3.0.55 151 4/1/2025
3.0.54 159 4/1/2025
3.0.53 150 4/1/2025
3.0.52 145 4/1/2025
3.0.51 156 4/1/2025
3.0.50 160 4/1/2025
3.0.49 151 4/1/2025
3.0.48 160 4/1/2025
3.0.47 155 4/1/2025
3.0.46 151 4/1/2025
3.0.45 159 4/1/2025
3.0.44 149 4/1/2025
3.0.43 147 4/1/2025
3.0.41 154 3/31/2025
3.0.40 175 3/31/2025
3.0.39 166 3/31/2025
3.0.38 152 3/31/2025
3.0.37 172 3/31/2025
3.0.36 163 3/31/2025
3.0.35 152 3/31/2025
3.0.34 153 3/30/2025
3.0.33 155 3/30/2025
3.0.32 152 3/29/2025
3.0.31 79 3/29/2025
3.0.30 84 3/29/2025
3.0.29 96 3/29/2025
3.0.28 90 3/29/2025
3.0.27 93 3/29/2025
3.0.26 88 3/29/2025
3.0.25 89 3/29/2025
3.0.24 94 3/29/2025
3.0.23 92 3/29/2025
3.0.22 133 3/27/2025
3.0.21 143 3/27/2025
3.0.20 142 3/27/2025
3.0.19 468 3/26/2025
3.0.18 467 3/26/2025
3.0.17 463 3/26/2025
3.0.16 475 3/26/2025
3.0.15 468 3/25/2025
3.0.14 469 3/25/2025
3.0.13 469 3/25/2025
3.0.12 465 3/25/2025
3.0.11 472 3/25/2025
3.0.10 465 3/25/2025
3.0.9 472 3/25/2025
3.0.8 469 3/25/2025
3.0.7 482 3/25/2025
3.0.6 482 3/25/2025
3.0.5 486 3/25/2025
3.0.4 487 3/24/2025
3.0.3 466 3/24/2025
3.0.2 459 3/24/2025
3.0.1 468 3/24/2025