Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (30 sloc) 1.188 kb

About the Library

Stripe is a simple, developer-friendly way to accept payments online. We believe that enabling transactions on the web is a problem rooted in code, not finance, and we want to help put more websites in business.

Currently, the library is feature complete for the Stripe API which can be found here:

How can I install it using NuGet?

To install Stripe, run the following command in the Package Manager Console

PM> Install-Package Stripe

How can I start using this library?

var apiKey = "Your API Key"; // can be found here
var api = new StripeClient(apiKey); // you can learn more about the api here

var card = new CreditCard {
    Number = "4242424242424242",
    ExpMonth = 3,
    ExpYear = 2015,
    Cvc = "123"

dynamic response = api.CreateCharge(
    amount: 100.00m, // $100
    currency: "usd",
    card: card);

if (!response.IsError && response.Paid)
    Console.WriteLine("Whoo Hoo...  We made our first sale!");
    Console.WriteLine("Payment failed. :(");


Copyright 2012 Stripe, Inc.

Jump to Line
Something went wrong with that request. Please try again.