killbill-cybersource 4.0.3 → 4.0.4
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/Gemfile.lock +1 -1
- data/NEWS +3 -0
- data/VERSION +1 -1
- data/lib/cybersource/api.rb +7 -5
- data/pom.xml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22ecf08a7f2ff826bafa069133f1d044170cb077
|
4
|
+
data.tar.gz: 2457ce1293de9ec7514ae3514dbfb343ca39c57b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56b71059a29ea785f014928806da3052719b0baf6b23757fa77030688e2b710fd2d60f23e74f12e167a33b3136225e3297fc8d06d038bd1c3a47b099648a9666
|
7
|
+
data.tar.gz: b7b87dfbd068f45166fed9e222851e6835d63cf66e0e68db32754f4317e2c6ae120dbc1084c295417f6863745a6275bfcc6c4e92a4560a464e1913a63f4c2617
|
data/Gemfile.lock
CHANGED
data/NEWS
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.4
|
data/lib/cybersource/api.rb
CHANGED
@@ -274,7 +274,7 @@ module Killbill #:nodoc:
|
|
274
274
|
logger.info "Skipping gateway call for existing kb_transaction_id='#{kb_transaction.id}', merchant_reference_code='#{merchant_reference_code}'"
|
275
275
|
options[:skip_gw] = true
|
276
276
|
rescue => e
|
277
|
-
logger.warn "Error checking for duplicate payment for merchant_reference_code='#{merchant_reference_code}'\n#{e.backtrace.join("\n")}"
|
277
|
+
logger.warn "Error checking for duplicate payment for merchant_reference_code='#{merchant_reference_code}': #{e.message}\n#{e.backtrace.join("\n")}"
|
278
278
|
end
|
279
279
|
|
280
280
|
# Duplicate check
|
@@ -319,7 +319,7 @@ module Killbill #:nodoc:
|
|
319
319
|
return nil if on_demand_config.nil?
|
320
320
|
CyberSourceOnDemand.new(on_demand_config, logger)
|
321
321
|
rescue => e
|
322
|
-
@logger.warn("Unexpected exception while looking-up reporting API for kb_tenant_id='#{context.tenant_id}'\n#{e.backtrace.join("\n")}")
|
322
|
+
@logger.warn("Unexpected exception while looking-up reporting API for kb_tenant_id='#{context.tenant_id}': #{e.message}\n#{e.backtrace.join("\n")}")
|
323
323
|
nil
|
324
324
|
end
|
325
325
|
|
@@ -333,16 +333,18 @@ module Killbill #:nodoc:
|
|
333
333
|
new_auth_response = authorize_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context)
|
334
334
|
rescue => e
|
335
335
|
# Note: state might be broken here (potentially two responses with the same kb_payment_transaction_id)
|
336
|
-
@logger.warn("Unexpected exception while forcing validation for kb_payment_id='#{kb_payment_id}', kb_payment_transaction_id='#{kb_payment_transaction_id}'\n#{e.backtrace.join("\n")}")
|
336
|
+
@logger.warn("Unexpected exception while forcing validation for kb_payment_id='#{kb_payment_id}', kb_payment_transaction_id='#{kb_payment_transaction_id}': #{e.message}\n#{e.backtrace.join("\n")}")
|
337
337
|
return auth_response
|
338
338
|
end
|
339
339
|
|
340
340
|
# Void it right away on success (make sure we didn't skip the gateway call too)
|
341
341
|
if new_auth_response.status == :PROCESSED && !new_auth_response.first_payment_reference_id.blank?
|
342
|
+
# The transaction id here is bogus, since it doesn't exist in Kill Bill
|
343
|
+
void_properties = merge_properties(properties, { :external_key_as_order_id => false })
|
342
344
|
begin
|
343
|
-
void_payment(kb_account_id, kb_payment_id, SecureRandom.uuid, kb_payment_method_id,
|
345
|
+
void_payment(kb_account_id, kb_payment_id, SecureRandom.uuid, kb_payment_method_id, void_properties, context)
|
344
346
|
rescue => e
|
345
|
-
@logger.warn("Unexpected exception while voiding forced validation for kb_payment_id='#{kb_payment_id}', kb_payment_transaction_id='#{kb_payment_transaction_id}'\n#{e.backtrace.join("\n")}")
|
347
|
+
@logger.warn("Unexpected exception while voiding forced validation for kb_payment_id='#{kb_payment_id}', kb_payment_transaction_id='#{kb_payment_transaction_id}': #{e.message}\n#{e.backtrace.join("\n")}")
|
346
348
|
end
|
347
349
|
end
|
348
350
|
|
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>4.0.
|
28
|
+
<version>4.0.4</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>
|