Skip to content
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. https://stripe.com/
C# Batchfile
Find file
Latest commit 323b4a0 @paulirwin paulirwin Merge pull request #49 from nberardi/restsharp-upgrade
RestSharp Upgrade to 105.2
Failed to load latest commit information.
nuget added NuGet package
src Upgrade nuspec dependency version for RestSharp to 105.2.3
test/Stripe.Tests Update Stripe test API key from their docs
.gitignore
.travis.yml adding travis ci build configuration file
LICENSE.txt added NuGet package
README.markdown Revert "updated all xunit tests to pass"
Stripe.msbuild added NuGet package
Stripe.sln Remove legacy NuGet exe and targets
build.cmd Change to build.cmd to use relative nuget path

README.markdown

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: https://stripe.com/docs/api

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 https://manage.stripe.com/#account/apikeys
var api = new StripeClient(apiKey); // you can learn more about the api here https://stripe.com/docs/api

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!");
else
    Console.WriteLine("Payment failed. :(");

Authors

Copyright 2012 Stripe, Inc.

Something went wrong with that request. Please try again.