Soenneker.Blazor.Stripe.Elements 3.0.274

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