Skip to content

Commit

Permalink
Stripe.net now supports .NET 4.5+ and is a portable class library. UW…
Browse files Browse the repository at this point in the history
…P, .NET Core, Windows 8, WindowsPhone 8.0+, and Xamarin are now supported. Bumped the api version to 3.24. Many thanks to a great deal of individuals who helped pull this off.
  • Loading branch information
jaymedavis committed Mar 10, 2016
1 parent 99bb181 commit 9024c48
Show file tree
Hide file tree
Showing 31 changed files with 657 additions and 334 deletions.
23 changes: 11 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# build and binary files
src/*/bin
src/*/_web_event_hooks/bin
obj
dist
*.suo
*.user
*.cache
_ReSharper.*
*resharper*
*.DotCover
src/packages/*
*.nupkg
.DS_Store
Stripe.net.dll

working*
# user/vs files
*.user
.vs

App.config.mine
src/packages/*
!src/packages/repositories.config
# portable/xamarin
Stripe.userprefs

# my secretz
my_test_keys.txt
1 change: 0 additions & 1 deletion build nuget.cmd

This file was deleted.

11 changes: 7 additions & 4 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
rd .\working40 /S /Q
md .\working40
.\build\nuget restore .\src\Stripe.sln

call %WINDIR%\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe src/Stripe.sln /p:Configuration=Release
copy .\src\Stripe\bin\Release\Stripe.net.dll .\working40\
call %WINDIR%\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe .\src\Stripe.sln /p:Configuration=Release
copy .\src\Stripe\bin\Release\Stripe.net.dll .\build\net45\Stripe.net.dll /Y
copy .\src\Stripe.Portable\bin\Release\Stripe.net.Portable.dll .\build\portable\Stripe.net.dll /Y

cd build
nuget pack Stripe.net.nuspec
12 changes: 7 additions & 5 deletions Stripe.net.nuspec → build/Stripe.net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>Stripe.net</id>
<version>5.3.0</version>
<version>6.0.0</version>
<authors>Jayme Davis</authors>
<owners>Jayme Davis</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectUrl>https://github.com/jaymedavis/stripe.net</projectUrl>
<iconUrl>https://pbs.twimg.com/profile_images/497432038492733440/eW6tXeq3.png</iconUrl>
<licenseUrl>https://raw.github.com/jaymedavis/stripe.net/master/LICENSE</licenseUrl>
<title>Stripe.net</title>
<description>A .net client for http://stripe.com</description>
<tags>stripe, payment, credit cards, money</tags>
<description>Stripe.net is a .NET 4.5+ client, and a portable class library for stripe.com.</description>
<tags>stripe, payment, credit cards, money, gateway, paypal, braintree</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="7.0.1" />
<dependency id="Newtonsoft.Json" version="8.0.2" />
</dependencies>
</metadata>
<files>
<file src="working40\Stripe.net.dll" target="lib" />
<file src="net45\Stripe.net.dll" target="lib\net45" />
<file src="portable\Stripe.net.dll" target="lib\dotnet" />
<file src="portable\Stripe.net.dll" target="lib\portable-net45+win8+wpa81+wp8" />
</files>
</package>
Empty file added build/net45/.gitkeep
Empty file.
Binary file added build/nuget.exe
Binary file not shown.
Empty file added build/portable/.gitkeep
Empty file.
25 changes: 11 additions & 14 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
## stripe.net
![Stripe](https://stripe.com/img/navigation/logo.png?2)

I am no longer using semantic naming in this project. I do not want to have a 17.0 version of stripe.net. From now on, major changes will be a major
release, and minor changes will be a minor release. If you want to know more, view the [release notes](https://github.com/jaymedavis/stripe.net/releases).
**Release: 6.0.0**
Stripe.net now supports .NET 4.5+ and is a portable class library. UWP, .NET Core, Windows 8, WindowsPhone 8.0+, and Xamarin are now supported.

###**If you would like to submit a pull request.**
First, thank you! It is a lot of work to learn someone else's codebase, so I appreciate it. Here are a few things that would help me out:
* Do not submit pull requests for more than one fix. Keep them small and focused.
* Please code review yourself. There are a lot of pull requests with typos and mistakes. Don't worry, we all do it. But a code review of yourself will help. :)
* Please review the diff in GitHub that I will see before I merge your pull requests. If it's hard for you to tell what the differences are, it's going to be hard for me too.
Support
-------
Search [issues](https://github.com/jaymedavis/stripe.net/issues) and [pull requests](https://github.com/jaymedavis/stripe.net/pulls) to make sure your issue doesn't exist already. If it does, please leave a comment. [Create a new issue](https://github.com/jaymedavis/stripe.net/issues/new) if it does not exist.

You can often find me in IRC hanging out in #stripe on freenode.

Quick Start
-----------

It is recommended that you install Stripe.net via NuGet. If you wish to build it yourself, just run build.cmd.

Add a reference to Stripe.net.dll.
It is recommended that you install Stripe.net via NuGet.

Next you will need to provide Stripe.net with your api key. There are 4 ways to do this:

a) Add an AppSetting with your api key to your config (this is the easiest way and will work throughout the app on every request)
a) Add an AppSetting with your api key to your config (this is the easiest way and will work throughout the app on every request) - will not work on portable platforms

<appSettings>
...
Expand Down Expand Up @@ -879,8 +877,7 @@ The Stripe Connect documentation can be a little intimidating, so I am going to
and access or modify connected accounts depending on permissions.

1) The first thing you need to do is [register your platform](https://dashboard.stripe.com/account/applications/settings) with Stripe Connect. Stripe.net at this time only supports
[Standalone Accounts](https://stripe.com/docs/connect/standalone-accounts), which is very useful because it supports every country Stripe supports. Managed Accounts are a
valuable service as well, but they are not available in Stripe.net yet.
[Standalone Accounts](https://stripe.com/docs/connect/standalone-accounts), which is very useful because it supports every country Stripe supports.

2) The next thing to do, is have another party connect to your site. To do this, put a link on your site which will start the authorization process, or you can use a
[Stripe Connect Button](https://stripe.com/about/resources). Your link will need to contain some querystring parameters:
Expand Down
6 changes: 0 additions & 6 deletions src/.nuget/NuGet.Config

This file was deleted.

Binary file removed src/.nuget/NuGet.exe
Binary file not shown.
136 changes: 0 additions & 136 deletions src/.nuget/NuGet.targets

This file was deleted.

5 changes: 3 additions & 2 deletions src/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.Reflection;

[assembly: AssemblyTitle("Stripe.net")]
[assembly: AssemblyDescription("A .net client for http://stripe.com")]
[assembly: AssemblyCompany("Jayme Davis")]
[assembly: AssemblyProduct("Stripe.net")]
[assembly: AssemblyCopyright("Copyright (C) Jayme Davis 2016")]
[assembly: AssemblyVersion("5.3.0")]
[assembly: AssemblyVersion("6.0.0")]

11 changes: 11 additions & 0 deletions src/Stripe.Portable/Extensions/BindingFlags.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;

namespace Stripe
{
internal enum BindingFlags
{
Instance,
Public,
NonPublic
}
}
16 changes: 16 additions & 0 deletions src/Stripe.Portable/Extensions/ReflectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Reflection;

namespace Stripe
{
internal static class ReflectionExtensions
{
public static IEnumerable<PropertyInfo> GetProperties(this Type type, BindingFlags flags)
{
var properties = type.GetRuntimeProperties();

return properties;
}
}
}
Loading

0 comments on commit 9024c48

Please sign in to comment.