killbill-cybersource 5.2.4 → 5.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cybersource/api.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df34085d6b06b47d50f02617719df3d23916ade1
|
|
4
|
+
data.tar.gz: 5862e35a1117ba3d27e27f0488540e3273dabd4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b3cee5233694764304c3586bd20efb4f7b5e47354b4323c42d1cd7a12bff15a03657bc5f8be016d4755797a1710c3b8f05a98d8c80416151154c22de979694d
|
|
7
|
+
data.tar.gz: fa9e95ec74d39be989f9149aa28f85f68abd8fb1438376bba0850412b2bc26baec4325af42e3541fffddaf4d8cb832caa846299fb52dc38359e74b250d24c046
|
data/lib/cybersource/api.rb
CHANGED
|
@@ -3,7 +3,7 @@ module Killbill #:nodoc:
|
|
|
3
3
|
class PaymentPlugin < ::Killbill::Plugin::ActiveMerchant::PaymentPlugin
|
|
4
4
|
|
|
5
5
|
FIVE_MINUTES_AGO = (1 * 300)
|
|
6
|
-
|
|
6
|
+
ONE_HOUR_AGO = (1 * 3600)
|
|
7
7
|
SIXTY_DAYS_AGO = (60 * 86400)
|
|
8
8
|
|
|
9
9
|
def initialize
|
|
@@ -174,7 +174,7 @@ module Killbill #:nodoc:
|
|
|
174
174
|
# Report API not configured, connection problem or skip_gw=true
|
|
175
175
|
next if report.nil?
|
|
176
176
|
|
|
177
|
-
threshold = (Killbill::Plugin::ActiveMerchant::Utils.normalized(options, :cancel_threshold) ||
|
|
177
|
+
threshold = (Killbill::Plugin::ActiveMerchant::Utils.normalized(options, :cancel_threshold) || ONE_HOUR_AGO).to_i
|
|
178
178
|
should_cancel_payment = delay_since_transaction >= threshold
|
|
179
179
|
if (report.empty? || report_not_match(report, transaction_info_plugin.first_payment_reference_id, existing_request_ids)) && !should_cancel_payment
|
|
180
180
|
# We'll retry later
|
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: 5.2.
|
|
4
|
+
version: 5.2.5
|
|
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:
|
|
11
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|