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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf0b374a0672d53db036f9f39c45d663c5478b71
4
- data.tar.gz: f7244811da2b9e5c2dae307c84e919b3886a1692
3
+ metadata.gz: 22ecf08a7f2ff826bafa069133f1d044170cb077
4
+ data.tar.gz: 2457ce1293de9ec7514ae3514dbfb343ca39c57b
5
5
  SHA512:
6
- metadata.gz: 23bd9c1612dfa4bc4c2af62fb090865a64ab1e8ef2acbd8bb7d6ad9ead71da4b22814c0fe08cabf1b50a362d9e25528909fe475a696924477e124fc8c30d14a3
7
- data.tar.gz: 3989c693a1c021c9ec0186638bbaeb78154c007884be21b5a237281948cb5f49016b5c15ab93ac9f6f988d3f28cb60af84eb99cd764393f6d3edcbf2b92e609d
6
+ metadata.gz: 56b71059a29ea785f014928806da3052719b0baf6b23757fa77030688e2b710fd2d60f23e74f12e167a33b3136225e3297fc8d06d038bd1c3a47b099648a9666
7
+ data.tar.gz: b7b87dfbd068f45166fed9e222851e6835d63cf66e0e68db32754f4317e2c6ae120dbc1084c295417f6863745a6275bfcc6c4e92a4560a464e1913a63f4c2617
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-cybersource (4.0.3)
4
+ killbill-cybersource (4.0.4)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.48.0)
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 4.0.4
2
+ Fix $1 verification when external_key_as_order_id is set
3
+
1
4
  4.0.3
2
5
  Add support for business rules on Apple Pay
3
6
  You can now specify commerce_indicator as a plugin property to override the commerceIndicator value
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.3
1
+ 4.0.4
@@ -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, properties, context)
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.3</version>
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>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-cybersource
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team