effective_orders 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b754cd5d2aeb5e4000ee3b4c2fc1c16278f320e3
4
- data.tar.gz: 0270f46b3bbef65baa6dbc4ac7167d8ca6871d05
3
+ metadata.gz: 6b26185e33ab463b2de7422b06b0c014c861277d
4
+ data.tar.gz: 98cc75f935177564e5853aafdc9d605f8ec221a9
5
5
  SHA512:
6
- metadata.gz: 84b348ed34d246acb8b47b4c71efe6a7e0feb58814aaf5e1ed4cf3228f4c6bdea625948cd1a519d6e4cbba7c1b792c2689d431ecf56e9d9e7690531168538faf
7
- data.tar.gz: 43466c0a0104dc78c678ec8e458ca30d95acf73796a19e934c6df44b5aef7354dfc789d98954e75aa7e388d972fe711f0b2a6b787fdb09e6fc75e93601673b77
6
+ metadata.gz: f862dd06f8e47396576195ddeaf9b39174370bf2f6342223cd390954feab6a6bf5164bad14321216d636646438c3b3b74d1cff117fa345d8f2cb75ede69d3c0c
7
+ data.tar.gz: 668344bd424d1c3b828824329a21c653f3c6ce62a614107554c6e6883e486fed660ad5e8f7faf3953d920ba5c2198d38d4ec65035419430c2aaa209b4dc1b024
data/README.md CHANGED
@@ -806,6 +806,27 @@ config.stripe = {
806
806
  }
807
807
  ```
808
808
 
809
+ There are a few additional steps you need to take on the rails application side of things:
810
+
811
+
812
+ Before allowing one of your Users to create a Product for sale, you must enforce that they have a Stripe Connect account setup and configured.
813
+
814
+ You can check if they have an account set up using the built in helper `is_stripe_connect_seller?(current_user)`
815
+
816
+ If the above check returns false, you must send them to Stripe to set up their StripeConnect account, using the built in helper `link_to_new_stripe_connect_customer`
817
+
818
+ Once they've registered their account on the Stripe side, Stripe sends a webhook request, which is processed by the `webhooks_controller.rb`
819
+
820
+ In the webhook controller, an `Effective::Customer` object is created, and your user is now ready to sell stuff via StripeConnect.
821
+
822
+
823
+ Your product model must also define a `seller` method so that effective_orders knows who is selling the Product. Add the following to your `acts_as_purchasable` model:
824
+
825
+ ```ruby
826
+ def seller
827
+ User.find(user_id)
828
+ end
829
+ ```
809
830
 
810
831
  ### Stripe Subscriptions
811
832
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '1.4.0'.freeze
2
+ VERSION = '1.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 1.0.0
145
+ version: 1.0.2
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 1.0.0
152
+ version: 1.0.2
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: stripe
155
155
  requirement: !ruby/object:Gem::Requirement