killbill-cybersource 5.2.4 → 5.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource/api.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df044ef246377530e4ec272f5f78785678bbb7b2
4
- data.tar.gz: 9a352c73fb090dbd3a97ff8323b3f5ea2670958f
3
+ metadata.gz: df34085d6b06b47d50f02617719df3d23916ade1
4
+ data.tar.gz: 5862e35a1117ba3d27e27f0488540e3273dabd4c
5
5
  SHA512:
6
- metadata.gz: 7cd6e486de4ec3fa7d93f38d1e39e1b29c26858b1d83b594bc0ce120e5a512548e81d06bb3641d204b760a1601709f48cc6ad85a544dbbacc8fd1e78b5d7111d
7
- data.tar.gz: 0d769ab36d527b0eaafd8b8b8968bebfa7e5ce4c713e32a530dea4d9a6ba351ba5639796b1def41d59f753475cf784b1d6a317a06370b6408d0546ea2c818aba
6
+ metadata.gz: 3b3cee5233694764304c3586bd20efb4f7b5e47354b4323c42d1cd7a12bff15a03657bc5f8be016d4755797a1710c3b8f05a98d8c80416151154c22de979694d
7
+ data.tar.gz: fa9e95ec74d39be989f9149aa28f85f68abd8fb1438376bba0850412b2bc26baec4325af42e3541fffddaf4d8cb832caa846299fb52dc38359e74b250d24c046
@@ -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
- ONE_DAY_AGO = (1 * 86400)
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) || ONE_DAY_AGO).to_i
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
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: 2017-09-19 00:00:00.000000000 Z
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