![]() |
VOOZH | about |
dotnet add package FonsecaFramework.Stripe --version 2026.6.18.1
NuGet\Install-Package FonsecaFramework.Stripe -Version 2026.6.18.1
<PackageReference Include="FonsecaFramework.Stripe" Version="2026.6.18.1" />
<PackageVersion Include="FonsecaFramework.Stripe" Version="2026.6.18.1" />Directory.Packages.props
<PackageReference Include="FonsecaFramework.Stripe" />Project file
paket add FonsecaFramework.Stripe --version 2026.6.18.1
#r "nuget: FonsecaFramework.Stripe, 2026.6.18.1"
#:package FonsecaFramework.Stripe@2026.6.18.1
#addin nuget:?package=FonsecaFramework.Stripe&version=2026.6.18.1Install as a Cake Addin
#tool nuget:?package=FonsecaFramework.Stripe&version=2026.6.18.1Install as a Cake Tool
A simple Stripe payment integration client for .NET.
FonsecaFramework.Stripe is a .NET 9 library that wraps the Stripe.net SDK to provide a streamlined payment experience. It supports direct card payments via PaymentIntent and hosted checkout sessions via Stripe Checkout. The library reuses the Product and Reciept models from FonsecaFramework.PayPal for a consistent API across payment providers.
dotnet add package FonsecaFramework.Stripe
| Area | Key Classes |
|---|---|
| Stripe Client | StripeClient — process payments with card details or start hosted checkout sessions |
| Direct Payment | ProcessPaymentWithPaymentMethod() — create and confirm a PaymentIntent with card details |
| Checkout Session | StartCheckoutSessionAsync() — create a Stripe Checkout session and return a redirect URL |
| Shared Models | Uses Product and Reciept from FonsecaFramework.PayPal |
using FonsecaFramework.Stripe;
using FonsecaFramework.PayPal;
var stripe = new StripeClient("<your-stripe-secret-key>");
var products = new List<Product>
{
new Product { Name = "T-Shirt", Price = 29.99m, CurrencyCode = "usd", Quantity = 2 }
};
bool success = await stripe.ProcessPaymentWithPaymentMethod(
products: products,
purchaseDescription: "Online Store Order #1234",
cardNumber: "4242424242424242",
expMonth: 12,
expYear: 2026,
cvc: "314");
Console.WriteLine(success ? "Payment succeeded!" : "Payment failed.");
using FonsecaFramework.Stripe;
using FonsecaFramework.PayPal;
var stripe = new StripeClient("<your-stripe-secret-key>");
var products = new List<Product>
{
new Product { Name = "Widget", Price = 15.00m, CurrencyCode = "usd", Quantity = 3 },
new Product { Name = "Gadget", Price = 45.00m, CurrencyCode = "usd", Quantity = 1 }
};
Reciept receipt = await stripe.StartCheckoutSessionAsync(
products: products,
successUrl: "https://mysite.com/success?session_id={CHECKOUT_SESSION_ID}",
cancelUrl: "https://mysite.com/cancel",
taxRate: 0.08m);
Console.WriteLine($"Checkout URL: {receipt.CheckoutUrl}");
Console.WriteLine($"Order ID: {receipt.OrderID}");
Console.WriteLine($"Total: {receipt.Total:C}");
Copyright 2025 Steven Fonseca / VLR Creations
Licensed under the . You may use this library free of charge, provided you include the required attribution notices. See the file for full terms.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.6.18.1 | 0 | 6/18/2026 |
| 2026.6.13.1 | 46 | 6/13/2026 |
| 2026.6.4.2 | 90 | 6/4/2026 |
| 2026.6.4.1 | 94 | 6/4/2026 |
| 2026.6.3.3 | 97 | 6/4/2026 |
| 2026.6.3.2 | 100 | 6/4/2026 |
| 2026.6.3.1 | 95 | 6/3/2026 |
| 2026.5.21.1 | 101 | 5/22/2026 |
| 2026.5.20.1 | 107 | 5/20/2026 |
| 2026.5.12.1 | 94 | 5/13/2026 |
| 2026.5.11.1 | 105 | 5/11/2026 |
| 2026.5.7.2 | 103 | 5/7/2026 |
| 2026.5.7.1 | 91 | 5/7/2026 |
| 2026.5.6.1 | 99 | 5/6/2026 |
| 2026.5.5.1 | 98 | 5/5/2026 |
| 2026.5.2.1 | 94 | 5/2/2026 |
| 2026.4.30.1 | 101 | 4/30/2026 |
| 2026.4.29.1 | 117 | 4/29/2026 |
| 2026.4.27.1 | 101 | 4/28/2026 |
| 2026.4.22.1 | 102 | 4/22/2026 |