stripe_wrapper 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07b8c7f81bf5983ac5e459b51f2ab6b6af172e6e
|
4
|
+
data.tar.gz: 7b6e4aeaaeb74a88013f06cf53f184f723af85c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d36e0f42f3ba498c868851443be9002282678f762f6206cb2858a2b2a3d0f76e45ee80285477960514a25c35843f2575d57ca95a40f8b98c5a9a56660ff4ca45
|
7
|
+
data.tar.gz: 9309f6c4db54d396742726534ea4b2275b8c2f38e7ff822622bdab023371f0caf5829e88fc8963c1f868a175893b4839bccd11d98e8543a429c36f0c436f8ec5
|
@@ -4,7 +4,7 @@ module StripeWrapper
|
|
4
4
|
protect_from_forgery with: :exception
|
5
5
|
|
6
6
|
def main_app_current_user
|
7
|
-
@current_user =
|
7
|
+
@current_user = current_user rescue nil
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/stripe_wrapper.rb
CHANGED
@@ -19,9 +19,9 @@ module StripeWrapper
|
|
19
19
|
)
|
20
20
|
end
|
21
21
|
|
22
|
-
def self.create_customer(token,user)
|
22
|
+
def self.create_customer(token,user,description='')
|
23
23
|
Stripe::Customer.create(
|
24
|
-
:description =>
|
24
|
+
:description => description,
|
25
25
|
:email => user.email,
|
26
26
|
:source => token # obtained with Stripe.js
|
27
27
|
)
|