killbill-cybersource 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +5 -5
- data/VERSION +1 -1
- data/killbill-cybersource.gemspec +1 -1
- data/lib/cybersource/api.rb +6 -2
- data/pom.xml +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2d37e65ee9d3acaaac4c660e0ddc9236e02f1cc
|
4
|
+
data.tar.gz: 7f3ce57e4d99791a099b4f13f239b8f3bee5f088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 256d147d0d079d7ff5e7a1cf1bca4ff7fecd12cf9ef9e626ba9de684231982b1c9eb8a30a1f8079870ee21be92b3d89dddf8a7beaf7b62469b28035720d5ae12
|
7
|
+
data.tar.gz: 5e89701f55c38d154be6ccc56f9edc907a01c9c3a06530cff0c27f7c6f3752b0f64b207eebec558a79f0a507a6a4f32814bb193cf9c366693bf3e4e5c0afa14c
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
killbill-cybersource (3.
|
4
|
+
killbill-cybersource (3.3.0)
|
5
5
|
actionpack (~> 4.1.0)
|
6
6
|
actionview (~> 4.1.0)
|
7
7
|
activemerchant (~> 1.48.0)
|
@@ -9,7 +9,7 @@ PATH
|
|
9
9
|
activerecord-bogacs (~> 0.3)
|
10
10
|
activerecord-jdbc-adapter (~> 1.3)
|
11
11
|
jruby-openssl (~> 0.9.6)
|
12
|
-
killbill (~> 6.
|
12
|
+
killbill (~> 6.5.0)
|
13
13
|
monetize (~> 1.1.0)
|
14
14
|
money (~> 6.5.1)
|
15
15
|
offsite_payments (~> 2.1.0)
|
@@ -63,11 +63,11 @@ GEM
|
|
63
63
|
jbundler (0.4.3)
|
64
64
|
maven-tools (~> 0.32.1)
|
65
65
|
ruby-maven (~> 3.0.4)
|
66
|
-
jdbc-mariadb (1.
|
67
|
-
jdbc-sqlite3 (3.8.
|
66
|
+
jdbc-mariadb (1.2.3)
|
67
|
+
jdbc-sqlite3 (3.8.11.2)
|
68
68
|
jruby-openssl (0.9.12-java)
|
69
69
|
json (1.8.3-java)
|
70
|
-
killbill (6.
|
70
|
+
killbill (6.5.0)
|
71
71
|
rack (>= 1.5.2)
|
72
72
|
sinatra (~> 1.3.4)
|
73
73
|
typhoeus (~> 0.6.9)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.0
|
data/lib/cybersource/api.rb
CHANGED
@@ -239,6 +239,8 @@ module Killbill #:nodoc:
|
|
239
239
|
end
|
240
240
|
|
241
241
|
def should_credit?(kb_payment_id, context, options = {})
|
242
|
+
|
243
|
+
|
242
244
|
# Transform refunds on old payments into credits automatically unless the disable_auto_credit property is passed
|
243
245
|
return false if Killbill::Plugin::ActiveMerchant::Utils.normalized(options, :disable_auto_credit)
|
244
246
|
|
@@ -246,8 +248,10 @@ module Killbill #:nodoc:
|
|
246
248
|
return false if transaction.nil?
|
247
249
|
|
248
250
|
threshold = (Killbill::Plugin::ActiveMerchant::Utils.normalized(options, :auto_credit_threshold) || SIXTY_DAYS_AGO).to_i
|
249
|
-
|
250
|
-
|
251
|
+
|
252
|
+
# we might want a 'util' function to make the conversion joda DateTime to a ruby Time object
|
253
|
+
now = Time.parse(@clock.get_clock.get_utc_now.to_s)
|
254
|
+
(now - transaction.created_at) >= threshold
|
251
255
|
end
|
252
256
|
|
253
257
|
# Make calls idempotent
|
data/pom.xml
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
<groupId>org.kill-bill.billing.plugin.ruby</groupId>
|
26
26
|
<artifactId>cybersource-plugin</artifactId>
|
27
27
|
<packaging>pom</packaging>
|
28
|
-
<version>3.
|
28
|
+
<version>3.3.0</version>
|
29
29
|
<name>cybersource-plugin</name>
|
30
30
|
<url>http://github.com/killbill/killbill-cybersource-plugin</url>
|
31
31
|
<description>Plugin for accessing Cybersource as a payment gateway</description>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-cybersource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kill Bill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: killbill
|
@@ -16,12 +16,12 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.
|
19
|
+
version: 6.5.0
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 6.
|
24
|
+
version: 6.5.0
|
25
25
|
prerelease: false
|
26
26
|
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|