Soenneker.Blazor.Stripe.Elements 3.0.254

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.254
                    
NuGet\Install-Package Soenneker.Blazor.Stripe.Elements -Version 3.0.254
                    
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.254" />
                    
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.254" />
                    
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.254
                    
#r "nuget: Soenneker.Blazor.Stripe.Elements, 3.0.254"
                    
#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.
#addin nuget:?package=Soenneker.Blazor.Stripe.Elements&version=3.0.254
                    
Install Soenneker.Blazor.Stripe.Elements as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Stripe.Elements&version=3.0.254
                    
Install Soenneker.Blazor.Stripe.Elements 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.302 7 6/25/2025
3.0.301 9 6/25/2025
3.0.300 12 6/23/2025
3.0.298 335 6/11/2025
3.0.297 281 6/11/2025
3.0.296 273 6/11/2025
3.0.295 272 6/11/2025
3.0.294 272 6/11/2025
3.0.293 268 6/10/2025
3.0.292 269 6/10/2025
3.0.291 265 6/10/2025
3.0.290 272 6/10/2025
3.0.289 190 6/3/2025
3.0.288 134 6/3/2025
3.0.287 161 5/28/2025
3.0.286 130 5/28/2025
3.0.285 132 5/27/2025
3.0.284 136 5/27/2025
3.0.283 128 5/27/2025
3.0.282 134 5/27/2025
3.0.281 132 5/27/2025
3.0.280 132 5/27/2025
3.0.279 131 5/27/2025
3.0.278 135 5/27/2025
3.0.277 131 5/27/2025
3.0.276 130 5/27/2025
3.0.275 137 5/26/2025
3.0.274 87 5/25/2025
3.0.273 87 5/25/2025
3.0.272 63 5/23/2025
3.0.271 83 5/23/2025
3.0.270 90 5/23/2025
3.0.269 97 5/23/2025
3.0.268 103 5/23/2025
3.0.267 109 5/23/2025
3.0.266 112 5/23/2025
3.0.265 112 5/23/2025
3.0.264 117 5/23/2025
3.0.263 113 5/23/2025
3.0.262 128 5/23/2025
3.0.261 120 5/23/2025
3.0.260 126 5/23/2025
3.0.259 132 5/22/2025
3.0.258 162 5/19/2025
3.0.257 134 5/18/2025
3.0.256 90 5/18/2025
3.0.255 221 5/15/2025
3.0.254 216 5/14/2025
3.0.253 234 5/14/2025
3.0.252 214 5/14/2025
3.0.251 217 5/14/2025
3.0.250 215 5/13/2025
3.0.249 234 5/13/2025
3.0.248 157 5/8/2025
3.0.247 131 5/8/2025
3.0.246 135 5/8/2025
3.0.245 141 5/8/2025
3.0.244 136 5/8/2025
3.0.243 130 5/8/2025
3.0.242 131 5/8/2025
3.0.241 136 5/8/2025
3.0.240 135 5/8/2025
3.0.239 132 5/8/2025
3.0.238 135 5/7/2025
3.0.237 134 5/7/2025
3.0.236 149 5/7/2025
3.0.235 131 5/7/2025
3.0.234 135 5/6/2025
3.0.233 140 5/6/2025
3.0.232 130 5/6/2025
3.0.231 134 5/6/2025
3.0.230 131 5/6/2025
3.0.229 132 5/6/2025
3.0.228 130 5/6/2025
3.0.227 129 5/6/2025
3.0.226 125 5/6/2025
3.0.225 129 5/6/2025
3.0.224 138 5/6/2025
3.0.223 135 5/6/2025
3.0.222 133 5/5/2025
3.0.221 134 5/5/2025
3.0.220 134 5/5/2025
3.0.219 137 5/5/2025
3.0.218 128 5/5/2025
3.0.217 131 5/5/2025
3.0.216 136 5/5/2025
3.0.215 136 5/5/2025
3.0.214 137 5/5/2025
3.0.213 130 5/5/2025
3.0.212 141 5/5/2025
3.0.211 135 5/5/2025
3.0.210 132 5/5/2025
3.0.209 131 5/5/2025
3.0.208 130 5/5/2025
3.0.207 129 5/5/2025
3.0.206 133 5/5/2025
3.0.203 131 5/5/2025
3.0.202 136 5/5/2025
3.0.201 132 5/4/2025
3.0.200 136 5/4/2025
3.0.199 141 5/4/2025
3.0.198 59 5/3/2025
3.0.197 76 5/2/2025
3.0.196 77 5/2/2025
3.0.195 80 5/2/2025
3.0.194 80 5/2/2025
3.0.193 85 5/2/2025
3.0.192 84 5/2/2025
3.0.191 81 5/2/2025
3.0.190 75 5/2/2025
3.0.189 76 5/2/2025
3.0.188 186 4/29/2025
3.0.187 130 4/27/2025
3.0.186 80 4/26/2025
3.0.185 67 4/26/2025
3.0.184 85 4/26/2025
3.0.183 152 4/24/2025
3.0.182 254 4/10/2025
3.0.181 197 4/9/2025
3.0.180 160 4/9/2025
3.0.179 157 4/9/2025
3.0.178 155 4/9/2025
3.0.177 146 4/8/2025
3.0.176 149 4/8/2025
3.0.175 147 4/8/2025
3.0.174 153 4/8/2025
3.0.173 153 4/8/2025
3.0.172 153 4/8/2025
3.0.171 153 4/8/2025
3.0.170 156 4/8/2025
3.0.169 152 4/8/2025
3.0.168 150 4/8/2025
3.0.167 147 4/8/2025
3.0.166 158 4/8/2025
3.0.165 154 4/8/2025
3.0.164 151 4/8/2025
3.0.163 149 4/8/2025
3.0.162 149 4/8/2025
3.0.161 152 4/8/2025
3.0.160 155 4/8/2025
3.0.159 152 4/8/2025
3.0.158 150 4/8/2025
3.0.157 152 4/8/2025
3.0.156 145 4/8/2025
3.0.155 152 4/8/2025
3.0.154 156 4/7/2025
3.0.153 164 4/7/2025
3.0.152 147 4/7/2025
3.0.151 157 4/7/2025
3.0.150 169 4/7/2025
3.0.149 161 4/7/2025
3.0.148 160 4/7/2025
3.0.147 153 4/7/2025
3.0.146 162 4/7/2025
3.0.145 160 4/7/2025
3.0.144 149 4/7/2025
3.0.143 169 4/7/2025
3.0.142 159 4/7/2025
3.0.141 163 4/7/2025
3.0.140 148 4/7/2025
3.0.139 149 4/7/2025
3.0.138 159 4/7/2025
3.0.137 166 4/7/2025
3.0.136 160 4/7/2025
3.0.135 162 4/7/2025
3.0.134 170 4/7/2025
3.0.133 152 4/7/2025
3.0.132 160 4/7/2025
3.0.131 161 4/7/2025
3.0.130 158 4/7/2025
3.0.129 157 4/7/2025
3.0.128 161 4/7/2025
3.0.127 156 4/7/2025
3.0.126 156 4/7/2025
3.0.125 156 4/7/2025
3.0.124 152 4/7/2025
3.0.123 145 4/7/2025
3.0.122 156 4/7/2025
3.0.121 154 4/6/2025
3.0.120 150 4/6/2025
3.0.119 148 4/6/2025
3.0.118 151 4/6/2025
3.0.117 152 4/6/2025
3.0.116 163 4/6/2025
3.0.115 158 4/6/2025
3.0.114 159 4/6/2025
3.0.113 154 4/6/2025
3.0.112 126 4/6/2025
3.0.111 121 4/6/2025
3.0.110 123 4/6/2025
3.0.109 135 4/6/2025
3.0.108 128 4/6/2025
3.0.107 135 4/6/2025
3.0.106 134 4/6/2025
3.0.105 134 4/6/2025
3.0.104 107 4/6/2025
3.0.103 104 4/6/2025
3.0.102 107 4/6/2025
3.0.101 100 4/6/2025
3.0.100 103 4/6/2025
3.0.99 102 4/6/2025
3.0.98 109 4/6/2025
3.0.97 96 4/6/2025
3.0.96 109 4/6/2025
3.0.95 108 4/6/2025
3.0.94 121 4/6/2025
3.0.93 108 4/5/2025
3.0.92 86 4/5/2025
3.0.91 81 4/5/2025
3.0.90 97 4/5/2025
3.0.89 80 4/5/2025
3.0.88 83 4/5/2025
3.0.87 88 4/5/2025
3.0.86 86 4/5/2025
3.0.85 88 4/5/2025
3.0.84 80 4/5/2025
3.0.83 84 4/5/2025
3.0.82 86 4/5/2025
3.0.81 93 4/5/2025
3.0.80 75 4/5/2025
3.0.79 82 4/5/2025
3.0.78 81 4/5/2025
3.0.77 89 4/5/2025
3.0.76 85 4/4/2025
3.0.75 89 4/4/2025
3.0.74 133 4/4/2025
3.0.73 126 4/4/2025
3.0.72 139 4/4/2025
3.0.71 138 4/4/2025
3.0.70 146 4/4/2025
3.0.69 141 4/4/2025
3.0.68 170 4/4/2025
3.0.67 148 4/4/2025
3.0.66 160 4/4/2025
3.0.65 152 4/4/2025
3.0.64 149 4/2/2025
3.0.63 131 4/1/2025
3.0.62 146 4/1/2025
3.0.61 144 4/1/2025
3.0.60 148 4/1/2025
3.0.59 142 4/1/2025
3.0.58 149 4/1/2025
3.0.57 136 4/1/2025
3.0.56 141 4/1/2025
3.0.55 139 4/1/2025
3.0.54 149 4/1/2025
3.0.53 141 4/1/2025
3.0.52 137 4/1/2025
3.0.51 145 4/1/2025
3.0.50 149 4/1/2025
3.0.49 141 4/1/2025
3.0.48 147 4/1/2025
3.0.47 145 4/1/2025
3.0.46 141 4/1/2025
3.0.45 145 4/1/2025
3.0.44 142 4/1/2025
3.0.43 139 4/1/2025
3.0.41 142 3/31/2025
3.0.40 144 3/31/2025
3.0.39 156 3/31/2025
3.0.38 143 3/31/2025
3.0.37 157 3/31/2025
3.0.36 152 3/31/2025
3.0.35 143 3/31/2025
3.0.34 142 3/30/2025
3.0.33 143 3/30/2025
3.0.32 137 3/29/2025
3.0.31 71 3/29/2025
3.0.30 77 3/29/2025
3.0.29 83 3/29/2025
3.0.28 80 3/29/2025
3.0.27 84 3/29/2025
3.0.26 77 3/29/2025
3.0.25 78 3/29/2025
3.0.24 84 3/29/2025
3.0.23 83 3/29/2025
3.0.22 124 3/27/2025
3.0.21 125 3/27/2025
3.0.20 129 3/27/2025
3.0.19 458 3/26/2025
3.0.18 457 3/26/2025
3.0.17 454 3/26/2025
3.0.16 459 3/26/2025
3.0.15 457 3/25/2025
3.0.14 460 3/25/2025
3.0.13 460 3/25/2025
3.0.12 457 3/25/2025
3.0.11 462 3/25/2025
3.0.10 457 3/25/2025
3.0.9 460 3/25/2025
3.0.8 459 3/25/2025
3.0.7 472 3/25/2025
3.0.6 470 3/25/2025
3.0.5 477 3/25/2025
3.0.4 479 3/24/2025
3.0.3 453 3/24/2025
3.0.2 449 3/24/2025
3.0.1 457 3/24/2025