killbill-cybersource 4.0.4 → 4.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22ecf08a7f2ff826bafa069133f1d044170cb077
4
- data.tar.gz: 2457ce1293de9ec7514ae3514dbfb343ca39c57b
3
+ metadata.gz: 96d4c96bd6500409bd5486e2eddafa7765d79784
4
+ data.tar.gz: 6caf6ca587116ad1153de9e7981f9eef909950ee
5
5
  SHA512:
6
- metadata.gz: 56b71059a29ea785f014928806da3052719b0baf6b23757fa77030688e2b710fd2d60f23e74f12e167a33b3136225e3297fc8d06d038bd1c3a47b099648a9666
7
- data.tar.gz: b7b87dfbd068f45166fed9e222851e6835d63cf66e0e68db32754f4317e2c6ae120dbc1084c295417f6863745a6275bfcc6c4e92a4560a464e1913a63f4c2617
6
+ metadata.gz: bc4d82f2719cabd26024ee982073dc8ff06f7a3aceb162a0e06e82df64e9e7255bf84dbc291e6c93b9a33f5b00b79af4d2adf8e4e5f998e1e6f9c741f69375ed
7
+ data.tar.gz: ec57fb70410e0dfbbe7c464f84ee3e2d1ebbb9b6c526467e783d243250043ce0f29902cb5651c29b7b8b5bbb24d04e211ccb0b311e688bb808ed0aa0aea6cbec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-cybersource (4.0.4)
4
+ killbill-cybersource (4.0.5)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.48.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.4
1
+ 4.0.5
@@ -40,6 +40,7 @@ module ActiveMerchant
40
40
  # Changes:
41
41
  # * Add support for commerceIndicator override
42
42
  # * Don't set paymentNetworkToken (needs to be set after businessRules)
43
+ # * Fix typo (expected brand for MasterCard is master)
43
44
  def add_network_tokenization(xml, payment_method, options)
44
45
  return unless network_tokenization?(payment_method)
45
46
 
@@ -50,7 +51,7 @@ module ActiveMerchant
50
51
  xml.tag!("commerceIndicator", options[:commerce_indicator] || "vbv")
51
52
  xml.tag!("xid", payment_method.payment_cryptogram)
52
53
  end
53
- when :mastercard
54
+ when :master
54
55
  xml.tag! 'ucaf' do
55
56
  xml.tag!("authenticationData", payment_method.payment_cryptogram)
56
57
  xml.tag!("collectionIndicator", "2")
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.4</version>
28
+ <version>4.0.5</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>
@@ -146,11 +146,38 @@ describe Killbill::Cybersource::PaymentPlugin do
146
146
  it 'should be able to bypass AVS and CVV rules with Apple Pay' do
147
147
  properties = build_pm_properties(nil,
148
148
  {
149
+ :cc_number => 4111111111111111,
150
+ :cc_type => 'visa',
149
151
  :payment_cryptogram => 'EHuWW9PiBkWvqE5juRwDzAUFBAk=',
150
152
  :ignore_avs => true,
151
153
  :ignore_cvv => true
152
154
  })
153
- payment_response = @plugin.purchase_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[0].id, @pm.kb_payment_method_id, @amount, @currency, properties, @call_context)
155
+ kb_payment = setup_kb_payment
156
+ payment_response = @plugin.purchase_payment(@pm.kb_account_id, kb_payment.id, kb_payment.transactions[0].id, @pm.kb_payment_method_id, @amount, @currency, properties, @call_context)
157
+ check_response(payment_response, @amount, :PURCHASE, :PROCESSED, 'Successful transaction', '100')
158
+
159
+ properties = build_pm_properties(nil,
160
+ {
161
+ :cc_number => 5555555555554444,
162
+ :cc_type => 'master',
163
+ :payment_cryptogram => 'EHuWW9PiBkWvqE5juRwDzAUFBAk=',
164
+ :ignore_avs => true,
165
+ :ignore_cvv => true
166
+ })
167
+ kb_payment = setup_kb_payment
168
+ payment_response = @plugin.purchase_payment(@pm.kb_account_id, kb_payment.id, kb_payment.transactions[0].id, @pm.kb_payment_method_id, @amount, @currency, properties, @call_context)
169
+ check_response(payment_response, @amount, :PURCHASE, :PROCESSED, 'Successful transaction', '100')
170
+
171
+ properties = build_pm_properties(nil,
172
+ {
173
+ :cc_number => 378282246310005,
174
+ :cc_type => 'american_express',
175
+ :payment_cryptogram => 'AAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBB==',
176
+ :ignore_avs => true,
177
+ :ignore_cvv => true
178
+ })
179
+ kb_payment = setup_kb_payment
180
+ payment_response = @plugin.purchase_payment(@pm.kb_account_id, kb_payment.id, kb_payment.transactions[0].id, @pm.kb_payment_method_id, @amount, @currency, properties, @call_context)
154
181
  check_response(payment_response, @amount, :PURCHASE, :PROCESSED, 'Successful transaction', '100')
155
182
  end
156
183
 
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: 4.0.4
4
+ version: 4.0.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: 2016-05-05 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill