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 +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/cybersource/ext/active_merchant/active_merchant.rb +2 -1
- data/pom.xml +1 -1
- data/spec/cybersource/remote/integration_spec.rb +28 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96d4c96bd6500409bd5486e2eddafa7765d79784
|
|
4
|
+
data.tar.gz: 6caf6ca587116ad1153de9e7981f9eef909950ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc4d82f2719cabd26024ee982073dc8ff06f7a3aceb162a0e06e82df64e9e7255bf84dbc291e6c93b9a33f5b00b79af4d2adf8e4e5f998e1e6f9c741f69375ed
|
|
7
|
+
data.tar.gz: ec57fb70410e0dfbbe7c464f84ee3e2d1ebbb9b6c526467e783d243250043ce0f29902cb5651c29b7b8b5bbb24d04e211ccb0b311e688bb808ed0aa0aea6cbec
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.0.
|
|
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 :
|
|
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.
|
|
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
|
-
|
|
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
|
+
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-
|
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: killbill
|