active_payment 0.9.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_payment/gateway.rb +3 -3
- data/lib/active_payment/models/concerns/paypal_payable.rb +16 -0
- data/lib/active_payment/models/concerns/paypal_payee.rb +14 -0
- data/lib/active_payment/models/payable.rb +7 -12
- data/lib/active_payment/models/payee.rb +6 -10
- data/lib/active_payment/models/sale.rb +2 -2
- data/lib/active_payment/version.rb +1 -1
- data/lib/active_payment.rb +2 -0
- data/spec/active_payment/models/payable_spec.rb +27 -7
- data/spec/active_payment/models/payee_spec.rb +13 -5
- data/spec/active_payment/models/sale_spec.rb +2 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +6765 -0
- data/spec/helper.rb +8 -4
- metadata +4 -2
data/spec/helper.rb
CHANGED
@@ -30,7 +30,7 @@ class PayeeObj
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def to_payee
|
33
|
-
ActivePayment::Models::Payee.new(
|
33
|
+
ActivePayment::Models::Payee.new(id: id, paypal_identifier: paypal)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
class PayerObj
|
@@ -62,9 +62,13 @@ class PayableObj
|
|
62
62
|
|
63
63
|
def to_payable
|
64
64
|
ActivePayment::Models::Payable.new(
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
id: id,
|
66
|
+
class: self.class,
|
67
|
+
amount: amount,
|
68
|
+
description: description,
|
69
|
+
reference_number: id,
|
70
|
+
tax: tax,
|
71
|
+
shipping: shipping)
|
68
72
|
end
|
69
73
|
end
|
70
74
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_payment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Marc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -167,6 +167,8 @@ files:
|
|
167
167
|
- lib/active_payment/gateway.rb
|
168
168
|
- lib/active_payment/gateways/paypal_adaptive_payment.rb
|
169
169
|
- lib/active_payment/gateways/paypal_express_checkout.rb
|
170
|
+
- lib/active_payment/models/concerns/paypal_payable.rb
|
171
|
+
- lib/active_payment/models/concerns/paypal_payee.rb
|
170
172
|
- lib/active_payment/models/payable.rb
|
171
173
|
- lib/active_payment/models/payee.rb
|
172
174
|
- lib/active_payment/models/sale.rb
|