shoppe-stripe 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,4 @@
1
- require 'stripe'
2
1
  require 'shoppe/stripe/version'
3
- require 'shoppe/stripe/order_extensions'
4
2
  require 'shoppe/stripe/railtie'
5
3
 
6
4
  module Shoppe
@@ -17,9 +15,13 @@ module Shoppe
17
15
  end
18
16
 
19
17
  def setup
18
+ # Validate the configuration file to ensure stripe has been configured.
19
+ Shoppe.validate_live_config({'stripe' => ['api_key', 'publishable_key', 'currency']})
20
+
20
21
  require 'stripe'
21
22
  ::Stripe.api_key = self.api_key
22
-
23
+
24
+ require 'shoppe/stripe/order_extensions'
23
25
  Shoppe::Order.send :include, Shoppe::Stripe::OrderExtensions
24
26
 
25
27
  # When an order is confirmed, attempt to authorise the payment
@@ -1,5 +1,5 @@
1
1
  module Shoppe
2
2
  module Stripe
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoppe-stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.8
21
+ version: 0.0.9
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.0.8
29
+ version: 0.0.9
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: stripe
32
32
  requirement: !ruby/object:Gem::Requirement