killbill-cybersource 5.2.5 → 5.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df34085d6b06b47d50f02617719df3d23916ade1
4
- data.tar.gz: 5862e35a1117ba3d27e27f0488540e3273dabd4c
3
+ metadata.gz: ee94f723ce8f3fd855ebec5dc8467cd8fe254bcf
4
+ data.tar.gz: 46447d9f1a5639a1f75c34dcbaa5398972b42388
5
5
  SHA512:
6
- metadata.gz: 3b3cee5233694764304c3586bd20efb4f7b5e47354b4323c42d1cd7a12bff15a03657bc5f8be016d4755797a1710c3b8f05a98d8c80416151154c22de979694d
7
- data.tar.gz: fa9e95ec74d39be989f9149aa28f85f68abd8fb1438376bba0850412b2bc26baec4325af42e3541fffddaf4d8cb832caa846299fb52dc38359e74b250d24c046
6
+ metadata.gz: af0b1ca43e3f44936068c8af9bb42e479133dbd6dfc1fc5573fc9d2a468c8c4844727f8d6b84abb6cc14344b4fee853687f241a8732f9d6c14f2c0b5dd427cc7
7
+ data.tar.gz: 636299796815cc1005de149d38012876fb477af9d20242bcc20cec4da3d63464c0495b926ffd68ac6baa23f63b7aa3eba35658790a29c57d5fc2ac508eb8777c
@@ -55,7 +55,7 @@ module ActiveMerchant
55
55
  when :visa
56
56
  xml.tag! 'ccAuthService', {'run' => 'true'} do
57
57
  xml.tag!("cavv", payment_method.payment_cryptogram)
58
- xml.tag!("commerceIndicator", options[:commerce_indicator] || (is_android_pay(payment_method, options) ? 'internet' : 'vbv'))
58
+ xml.tag!("commerceIndicator", options[:commerce_indicator] || (is_android_pay(payment_method, options) || is_google_pay(payment_method, options)) ? 'internet' : 'vbv')
59
59
  xml.tag!("xid", payment_method.payment_cryptogram)
60
60
  add_reconciliation_id(xml, options)
61
61
  end
@@ -131,6 +131,8 @@ module ActiveMerchant
131
131
  def add_payment_solution(xml, payment_method, options)
132
132
  if is_android_pay(payment_method, options)
133
133
  xml.tag!('paymentSolution', '006')
134
+ elsif is_google_pay(payment_method, options)
135
+ xml.tag!('paymentSolution', '012')
134
136
  else
135
137
  xml.tag!('paymentSolution', '001')
136
138
  end
@@ -140,6 +142,10 @@ module ActiveMerchant
140
142
  (payment_method.respond_to?(:source) && payment_method.source == :android_pay) || options[:source] == 'androidpay'
141
143
  end
142
144
 
145
+ def is_google_pay(payment_method, options)
146
+ (payment_method.respond_to?(:source) && payment_method.source == :google_pay) || options[:source] == 'googlepay'
147
+ end
148
+
143
149
  # Changes:
144
150
  # * Enable business rules for Apple Pay
145
151
  # * Set paymentNetworkToken and paymentSolution if needed (a bit of a hack to do it here, but it avoids having to override too much code)
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.5
4
+ version: 5.2.6
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: 2018-03-21 00:00:00.000000000 Z
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement