Soenneker.Blazor.Stripe.Elements 3.0.235

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.235
                    
NuGet\Install-Package Soenneker.Blazor.Stripe.Elements -Version 3.0.235
                    
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.235" />
                    
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.235" />
                    
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.235
                    
#r "nuget: Soenneker.Blazor.Stripe.Elements, 3.0.235"
                    
#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.235
                    
Install Soenneker.Blazor.Stripe.Elements as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Stripe.Elements&version=3.0.235
                    
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. 
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.248 56 5/8/2025
3.0.247 54 5/8/2025
3.0.246 61 5/8/2025
3.0.245 65 5/8/2025
3.0.244 59 5/8/2025
3.0.243 57 5/8/2025
3.0.242 56 5/8/2025
3.0.241 59 5/8/2025
3.0.240 60 5/8/2025
3.0.239 56 5/8/2025
3.0.238 64 5/7/2025
3.0.237 63 5/7/2025
3.0.236 64 5/7/2025
3.0.235 61 5/7/2025
3.0.234 82 5/6/2025
3.0.233 86 5/6/2025
3.0.232 76 5/6/2025
3.0.231 80 5/6/2025
3.0.230 78 5/6/2025
3.0.229 78 5/6/2025
3.0.228 78 5/6/2025
3.0.227 75 5/6/2025
3.0.226 73 5/6/2025
3.0.225 77 5/6/2025
3.0.224 83 5/6/2025
3.0.223 80 5/6/2025
3.0.222 78 5/5/2025
3.0.221 82 5/5/2025
3.0.220 78 5/5/2025
3.0.219 83 5/5/2025
3.0.218 75 5/5/2025
3.0.217 76 5/5/2025
3.0.216 80 5/5/2025
3.0.215 79 5/5/2025
3.0.214 79 5/5/2025
3.0.213 78 5/5/2025
3.0.212 86 5/5/2025
3.0.211 82 5/5/2025
3.0.210 80 5/5/2025
3.0.209 78 5/5/2025
3.0.208 78 5/5/2025
3.0.207 77 5/5/2025
3.0.206 81 5/5/2025
3.0.203 77 5/5/2025
3.0.202 83 5/5/2025
3.0.201 79 5/4/2025
3.0.200 79 5/4/2025
3.0.199 86 5/4/2025
3.0.198 49 5/3/2025
3.0.197 64 5/2/2025
3.0.196 66 5/2/2025
3.0.195 71 5/2/2025
3.0.194 71 5/2/2025
3.0.193 74 5/2/2025
3.0.192 74 5/2/2025
3.0.191 70 5/2/2025
3.0.190 65 5/2/2025
3.0.189 65 5/2/2025
3.0.188 176 4/29/2025
3.0.187 123 4/27/2025
3.0.186 73 4/26/2025
3.0.185 60 4/26/2025
3.0.184 75 4/26/2025
3.0.183 145 4/24/2025
3.0.182 244 4/10/2025
3.0.181 188 4/9/2025
3.0.180 151 4/9/2025
3.0.179 150 4/9/2025
3.0.178 148 4/9/2025
3.0.177 139 4/8/2025
3.0.176 141 4/8/2025
3.0.175 136 4/8/2025
3.0.174 145 4/8/2025
3.0.173 141 4/8/2025
3.0.172 145 4/8/2025
3.0.171 143 4/8/2025
3.0.170 145 4/8/2025
3.0.169 144 4/8/2025
3.0.168 142 4/8/2025
3.0.167 139 4/8/2025
3.0.166 151 4/8/2025
3.0.165 146 4/8/2025
3.0.164 144 4/8/2025
3.0.163 142 4/8/2025
3.0.162 141 4/8/2025
3.0.161 145 4/8/2025
3.0.160 148 4/8/2025
3.0.159 145 4/8/2025
3.0.158 140 4/8/2025
3.0.157 144 4/8/2025
3.0.156 136 4/8/2025
3.0.155 140 4/8/2025
3.0.154 149 4/7/2025
3.0.153 156 4/7/2025
3.0.152 139 4/7/2025
3.0.151 147 4/7/2025
3.0.150 156 4/7/2025
3.0.149 149 4/7/2025
3.0.148 151 4/7/2025
3.0.147 143 4/7/2025
3.0.146 155 4/7/2025
3.0.145 151 4/7/2025
3.0.144 140 4/7/2025
3.0.143 160 4/7/2025
3.0.142 152 4/7/2025
3.0.141 154 4/7/2025
3.0.140 142 4/7/2025
3.0.139 139 4/7/2025
3.0.138 149 4/7/2025
3.0.137 157 4/7/2025
3.0.136 154 4/7/2025
3.0.135 156 4/7/2025
3.0.134 158 4/7/2025
3.0.133 144 4/7/2025
3.0.132 150 4/7/2025
3.0.131 151 4/7/2025
3.0.130 149 4/7/2025
3.0.129 148 4/7/2025
3.0.128 153 4/7/2025
3.0.127 149 4/7/2025
3.0.126 149 4/7/2025
3.0.125 149 4/7/2025
3.0.124 144 4/7/2025
3.0.123 139 4/7/2025
3.0.122 149 4/7/2025
3.0.121 146 4/6/2025
3.0.120 143 4/6/2025
3.0.119 142 4/6/2025
3.0.118 143 4/6/2025
3.0.117 144 4/6/2025
3.0.116 148 4/6/2025
3.0.115 151 4/6/2025
3.0.114 151 4/6/2025
3.0.113 147 4/6/2025
3.0.112 119 4/6/2025
3.0.111 115 4/6/2025
3.0.110 116 4/6/2025
3.0.109 127 4/6/2025
3.0.108 121 4/6/2025
3.0.107 128 4/6/2025
3.0.106 127 4/6/2025
3.0.105 127 4/6/2025
3.0.104 101 4/6/2025
3.0.103 96 4/6/2025
3.0.102 100 4/6/2025
3.0.101 94 4/6/2025
3.0.100 96 4/6/2025
3.0.99 91 4/6/2025
3.0.98 103 4/6/2025
3.0.97 90 4/6/2025
3.0.96 100 4/6/2025
3.0.95 97 4/6/2025
3.0.94 112 4/6/2025
3.0.93 102 4/5/2025
3.0.92 78 4/5/2025
3.0.91 74 4/5/2025
3.0.90 88 4/5/2025
3.0.89 72 4/5/2025
3.0.88 76 4/5/2025
3.0.87 82 4/5/2025
3.0.86 79 4/5/2025
3.0.85 80 4/5/2025
3.0.84 74 4/5/2025
3.0.83 78 4/5/2025
3.0.82 80 4/5/2025
3.0.81 86 4/5/2025
3.0.80 69 4/5/2025
3.0.79 76 4/5/2025
3.0.78 74 4/5/2025
3.0.77 80 4/5/2025
3.0.76 75 4/4/2025
3.0.75 83 4/4/2025
3.0.74 124 4/4/2025
3.0.73 120 4/4/2025
3.0.72 132 4/4/2025
3.0.71 126 4/4/2025
3.0.70 138 4/4/2025
3.0.69 133 4/4/2025
3.0.68 162 4/4/2025
3.0.67 141 4/4/2025
3.0.66 151 4/4/2025
3.0.65 144 4/4/2025
3.0.64 142 4/2/2025
3.0.63 125 4/1/2025
3.0.62 136 4/1/2025
3.0.61 136 4/1/2025
3.0.60 132 4/1/2025
3.0.59 135 4/1/2025
3.0.58 134 4/1/2025
3.0.57 129 4/1/2025
3.0.56 133 4/1/2025
3.0.55 130 4/1/2025
3.0.54 137 4/1/2025
3.0.53 132 4/1/2025
3.0.52 128 4/1/2025
3.0.51 137 4/1/2025
3.0.50 138 4/1/2025
3.0.49 133 4/1/2025
3.0.48 135 4/1/2025
3.0.47 132 4/1/2025
3.0.46 130 4/1/2025
3.0.45 134 4/1/2025
3.0.44 134 4/1/2025
3.0.43 131 4/1/2025
3.0.41 133 3/31/2025
3.0.40 132 3/31/2025
3.0.39 144 3/31/2025
3.0.38 136 3/31/2025
3.0.37 143 3/31/2025
3.0.36 141 3/31/2025
3.0.35 135 3/31/2025
3.0.34 134 3/30/2025
3.0.33 133 3/30/2025
3.0.32 127 3/29/2025
3.0.31 61 3/29/2025
3.0.30 68 3/29/2025
3.0.29 72 3/29/2025
3.0.28 70 3/29/2025
3.0.27 75 3/29/2025
3.0.26 69 3/29/2025
3.0.25 70 3/29/2025
3.0.24 76 3/29/2025
3.0.23 74 3/29/2025
3.0.22 119 3/27/2025
3.0.21 117 3/27/2025
3.0.20 122 3/27/2025
3.0.19 450 3/26/2025
3.0.18 447 3/26/2025
3.0.17 449 3/26/2025
3.0.16 451 3/26/2025
3.0.15 451 3/25/2025
3.0.14 454 3/25/2025
3.0.13 452 3/25/2025
3.0.12 450 3/25/2025
3.0.11 456 3/25/2025
3.0.10 448 3/25/2025
3.0.9 451 3/25/2025
3.0.8 453 3/25/2025
3.0.7 464 3/25/2025
3.0.6 465 3/25/2025
3.0.5 471 3/25/2025
3.0.4 469 3/24/2025
3.0.3 448 3/24/2025
3.0.2 443 3/24/2025
3.0.1 447 3/24/2025