killbill-cybersource 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/NEWS +3 -0
- data/VERSION +1 -1
- data/db/ddl.sql +4 -2
- data/db/schema.rb +3 -0
- data/lib/cybersource/ext/active_merchant/active_merchant.rb +12 -0
- data/pom.xml +1 -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: 70b683af2803875628c898a0e286c606904729e5
|
4
|
+
data.tar.gz: 5c89305ff541fb3bafc46b17af392c2f33ff8f29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c24e46930e496e0dc56ed77e2e67c1207ebcbaf5fd164c86090cfdb3b975e7b3c1df59e337ae93355ca63ba40a0cd732aaffb3970bb76ffde06995ad403bf8fc
|
7
|
+
data.tar.gz: f0823fc7f52a074d5b6b8bd8cd847dbd2762d27fddb5c0e19123466a03a34bfe415391b9431511ca31d4511626222caeaf495a29c97141ffc030047984d02d9c
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
killbill-cybersource (4.0.
|
4
|
+
killbill-cybersource (4.0.1)
|
5
5
|
actionpack (~> 4.1.0)
|
6
6
|
actionview (~> 4.1.0)
|
7
7
|
activemerchant (~> 1.48.0)
|
@@ -65,7 +65,7 @@ GEM
|
|
65
65
|
diff-lcs (1.1.3)
|
66
66
|
equalizer (0.0.11)
|
67
67
|
erubis (2.7.0)
|
68
|
-
ethon (0.8.
|
68
|
+
ethon (0.8.1)
|
69
69
|
ffi (>= 1.3.0)
|
70
70
|
ffi (1.9.10-java)
|
71
71
|
i18n (0.7.0)
|
@@ -80,7 +80,7 @@ GEM
|
|
80
80
|
jdbc-sqlite3 (3.8.11.2)
|
81
81
|
jruby-openssl (0.9.12-java)
|
82
82
|
json (1.8.3-java)
|
83
|
-
killbill (7.0.
|
83
|
+
killbill (7.0.1)
|
84
84
|
rack (>= 1.5.2)
|
85
85
|
sinatra (~> 1.3.4)
|
86
86
|
typhoeus (~> 0.6.9)
|
data/NEWS
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.1
|
data/db/ddl.sql
CHANGED
@@ -46,7 +46,8 @@ CREATE TABLE `cybersource_transactions` (
|
|
46
46
|
`kb_account_id` varchar(255) NOT NULL,
|
47
47
|
`kb_tenant_id` varchar(255) NOT NULL,
|
48
48
|
PRIMARY KEY (`id`),
|
49
|
-
KEY `index_cybersource_transactions_on_kb_payment_id` (`kb_payment_id`)
|
49
|
+
KEY `index_cybersource_transactions_on_kb_payment_id` (`kb_payment_id`),
|
50
|
+
KEY `index_cybersource_transactions_on_cybersource_response_id` (`cybersource_response_id`)
|
50
51
|
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
|
51
52
|
|
52
53
|
CREATE TABLE `cybersource_responses` (
|
@@ -86,5 +87,6 @@ CREATE TABLE `cybersource_responses` (
|
|
86
87
|
`updated_at` datetime NOT NULL,
|
87
88
|
`kb_account_id` varchar(255) DEFAULT NULL,
|
88
89
|
`kb_tenant_id` varchar(255) DEFAULT NULL,
|
89
|
-
PRIMARY KEY (`id`)
|
90
|
+
PRIMARY KEY (`id`),
|
91
|
+
KEY `index_cybersource_responses_on_kb_payment_id_kb_tenant_id` (`kb_payment_id`, `kb_tenant_id`)
|
90
92
|
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
|
data/db/schema.rb
CHANGED
@@ -50,6 +50,7 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
|
|
50
50
|
end
|
51
51
|
|
52
52
|
add_index(:cybersource_transactions, :kb_payment_id)
|
53
|
+
add_index(:cybersource_transactions, :cybersource_response_id)
|
53
54
|
|
54
55
|
create_table "cybersource_responses", :force => true do |t|
|
55
56
|
t.string "api_call", :null => false
|
@@ -88,4 +89,6 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
|
|
88
89
|
t.string "kb_account_id"
|
89
90
|
t.string "kb_tenant_id"
|
90
91
|
end
|
92
|
+
|
93
|
+
add_index(:cybersource_responses, [:kb_payment_id, :kb_tenant_id])
|
91
94
|
end
|
@@ -2,6 +2,18 @@ module ActiveMerchant
|
|
2
2
|
module Billing
|
3
3
|
class CyberSourceGateway
|
4
4
|
|
5
|
+
# Add support for CreditCard objects
|
6
|
+
def build_credit_request(money, creditcard_or_reference, options)
|
7
|
+
xml = Builder::XmlMarkup.new :indent => 2
|
8
|
+
|
9
|
+
setup_address_hash(options)
|
10
|
+
|
11
|
+
add_payment_method_or_subscription(xml, money, creditcard_or_reference, options)
|
12
|
+
add_credit_service(xml)
|
13
|
+
|
14
|
+
xml.target!
|
15
|
+
end
|
16
|
+
|
5
17
|
# See https://github.com/killbill/killbill-cybersource-plugin/issues/4
|
6
18
|
def commit(request, options)
|
7
19
|
request = build_request(request, options)
|
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.1</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,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.1
|
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:
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: killbill
|