omniauth-stripe-connect 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -37,13 +37,19 @@ Your `STRIPE_CONNECT_CLIENT_ID` is application-specific and your `STRIPE_SECRET`
|
|
37
37
|
|
38
38
|
Then you can hit `/auth/stripe_connect`
|
39
39
|
|
40
|
+
If you hit `/auth/stripe_connect` with any query params, they will be passed along to Stripe. Read [Stripe's OAuth Reference](https://stripe.com/docs/connect/reference) for more information.
|
41
|
+
|
40
42
|
### Ruby on Rails apps with Devise
|
41
43
|
|
42
44
|
After setting up Devise to use OmniAuth, you only need to add the following line of code to handle the OAuth2 part of Stripe Connect.
|
43
45
|
|
44
46
|
```ruby
|
45
47
|
# Put this in config/initializers/devise.rb with the rest of your Devise configuration
|
46
|
-
config.omniauth :stripe_connect,
|
48
|
+
config.omniauth :stripe_connect,
|
49
|
+
ENV['STRIPE_CONNECT_CLIENT_ID'],
|
50
|
+
ENV['STRIPE_SECRET_KEY'],
|
51
|
+
:scope => 'read_write', # or :scope => 'read_only'
|
52
|
+
:stripe_landing => 'login' # or :stripe_landing => 'register'
|
47
53
|
```
|
48
54
|
|
49
55
|
Now your done!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-stripe-connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash:
|
77
|
+
hash: 3075695850396348084
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
79
|
none: false
|
80
80
|
requirements:
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
segments:
|
85
85
|
- 0
|
86
|
-
hash:
|
86
|
+
hash: 3075695850396348084
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
89
|
rubygems_version: 1.8.24
|