pay 1.0.0.beta3 → 1.0.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pay might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/pay/billable.rb +12 -0
- data/lib/pay/braintree/billable.rb +0 -8
- data/lib/pay/stripe/billable.rb +0 -4
- data/lib/pay/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04da4cf2db886ff26020de3ff98a468590fe10fd884c0ecc751426495eb7e149
|
4
|
+
data.tar.gz: f9bda1c5e7d668e6dc84af02c6f8a90c3e3fc63fdb4468c35621151e5191535d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 692a1e69cca21a7b6329010a491043af5e31fe8e6d626bec1f244273a5078e86eb5ead1f6800c6e7f936da8bcf4f492606b8fa6e2987a4e13ec3df5f674b5893
|
7
|
+
data.tar.gz: 9b4b8fc38fde6014934d52d1e1ffbdaa863184e4e74138b4eea114e100c4582f70e3a3265120fee047a9b49275e1fd110184ed09207909e30536e789f3ab4fbc
|
data/lib/pay/billable.rb
CHANGED
@@ -83,6 +83,18 @@ module Pay
|
|
83
83
|
send("#{processor}_upcoming_invoice")
|
84
84
|
end
|
85
85
|
|
86
|
+
def stripe?
|
87
|
+
processor == "stripe"
|
88
|
+
end
|
89
|
+
|
90
|
+
def braintree?
|
91
|
+
processor == "braintree"
|
92
|
+
end
|
93
|
+
|
94
|
+
def paypal?
|
95
|
+
braintree? && card_type == "PayPal"
|
96
|
+
end
|
97
|
+
|
86
98
|
private
|
87
99
|
|
88
100
|
def check_for_processor
|
@@ -118,14 +118,6 @@ module Pay
|
|
118
118
|
# pass
|
119
119
|
end
|
120
120
|
|
121
|
-
def braintree?
|
122
|
-
processor == "braintree"
|
123
|
-
end
|
124
|
-
|
125
|
-
def paypal?
|
126
|
-
braintree? && card_type == "PayPal"
|
127
|
-
end
|
128
|
-
|
129
121
|
def save_braintree_transaction(transaction)
|
130
122
|
attrs = card_details_for_braintree_transaction(transaction)
|
131
123
|
attrs.merge!(amount: transaction.amount.to_f * 100)
|
data/lib/pay/stripe/billable.rb
CHANGED
data/lib/pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Charnes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-03-
|
12
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|