在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:nberardi/stripe-dotnet开源软件地址:https://github.com/nberardi/stripe-dotnet开源编程语言:C# 99.7%开源软件介绍:About the LibraryStripe 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
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. |
2022-08-15
2022-08-17
2022-09-23
2023-10-27
2022-08-18
请发表评论