Soenneker.Blazor.Stripe.Elements 3.0.273

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