Soenneker.Blazor.Stripe.Elements 3.0.313

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