killbill-stripe 1.0.0 → 2.0.0

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: 4a469dd32bd4ca451cf25b95945d523bd2543c04
4
- data.tar.gz: 8e62207b284afc8d78c030688fdd982568296bfa
3
+ metadata.gz: 270fb9bd14be8d19b940fafa225a695860b2ee72
4
+ data.tar.gz: 86ca5afdaa0d9aeee0833dffd8df11125104287d
5
5
  SHA512:
6
- metadata.gz: 54d9cd618ecb40a38708cd9706b9880ed22a1f457b3ffe8d5835d830b1fe1d5fa4877198b70371f23aaa0254df3970676cae7eb582f1d35d61dcfc24340d3846
7
- data.tar.gz: 68cdfe040ca1552a8361ebe13c80e9b980a2dc6c75167966d2b5b34103dcc74fe317fde6bb32e13fe2db9d3c72e821c243ed93cd7ce65ba9d88222d27757c472
6
+ metadata.gz: 76f386feca785a3b18fc7dc568f6d72573e0f421bebf389ef604b6405448831ce0b4fc8ecc391d67046f806a3f4dad381afb366b6c099ff8df4bd582b11010bc
7
+ data.tar.gz: d223639503bf9e3f6cfb48b8b44306ce8ca5680c5647d1f9f26dee7611bf174ad5cf3f47388522e6ef53c17a08452428dda6ff2f539d2a355091bb2e6752cb61
data/Gemfile.lock CHANGED
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-stripe (1.0.0)
4
+ killbill-stripe (2.0.0)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.48.0)
8
8
  activerecord (~> 4.1.0)
9
9
  activerecord-bogacs (~> 0.3)
10
- activerecord-jdbc-adapter (~> 1.3)
11
- jruby-openssl (~> 0.9.6)
12
- killbill (~> 4.0.0)
10
+ activerecord-jdbc-adapter (~> 1.3, < 1.5)
11
+ jruby-openssl (~> 0.9.7)
12
+ killbill (~> 5.2.0)
13
13
  monetize (~> 1.1.0)
14
14
  money (~> 6.5.1)
15
15
  offsite_payments (~> 2.1.0)
@@ -19,13 +19,13 @@ PATH
19
19
  GEM
20
20
  remote: https://rubygems.org/
21
21
  specs:
22
- actionpack (4.1.10)
23
- actionview (= 4.1.10)
24
- activesupport (= 4.1.10)
22
+ actionpack (4.1.13)
23
+ actionview (= 4.1.13)
24
+ activesupport (= 4.1.13)
25
25
  rack (~> 1.5.2)
26
26
  rack-test (~> 0.6.2)
27
- actionview (4.1.10)
28
- activesupport (= 4.1.10)
27
+ actionview (4.1.13)
28
+ activesupport (= 4.1.13)
29
29
  builder (~> 3.1)
30
30
  erubis (~> 2.7.0)
31
31
  active_utils (3.0.0)
@@ -36,18 +36,17 @@ GEM
36
36
  builder (>= 2.1.2, < 4.0.0)
37
37
  i18n (>= 0.6.9)
38
38
  nokogiri (~> 1.4)
39
- activemodel (4.1.10)
40
- activesupport (= 4.1.10)
39
+ activemodel (4.1.13)
40
+ activesupport (= 4.1.13)
41
41
  builder (~> 3.1)
42
- activerecord (4.1.10)
43
- activemodel (= 4.1.10)
44
- activesupport (= 4.1.10)
42
+ activerecord (4.1.13)
43
+ activemodel (= 4.1.13)
44
+ activesupport (= 4.1.13)
45
45
  arel (~> 5.0.0)
46
- activerecord-bogacs (0.3.0)
47
- thread_safe (~> 0.3)
48
- activerecord-jdbc-adapter (1.3.16)
46
+ activerecord-bogacs (0.4.0)
47
+ activerecord-jdbc-adapter (1.3.18)
49
48
  activerecord (>= 2.2)
50
- activesupport (4.1.10)
49
+ activesupport (4.1.13)
51
50
  i18n (~> 0.6, >= 0.6.9)
52
51
  json (~> 1.7, >= 1.7.7)
53
52
  minitest (~> 5.1)
@@ -57,24 +56,25 @@ GEM
57
56
  builder (3.2.2)
58
57
  diff-lcs (1.1.3)
59
58
  erubis (2.7.0)
60
- ethon (0.7.3)
59
+ ethon (0.8.0)
61
60
  ffi (>= 1.3.0)
62
- ffi (1.9.8-java)
61
+ ffi (1.9.10-java)
63
62
  i18n (0.7.0)
64
63
  jbundler (0.4.3)
65
64
  maven-tools (~> 0.32.1)
66
65
  ruby-maven (~> 3.0.4)
67
66
  jdbc-mariadb (1.1.8)
67
+ jdbc-postgres (9.4.1200)
68
68
  jdbc-sqlite3 (3.8.7)
69
- jruby-openssl (0.9.7-java)
70
- json (1.8.2-java)
71
- killbill (4.0.0)
69
+ jruby-openssl (0.9.12-java)
70
+ json (1.8.3-java)
71
+ killbill (5.2.0)
72
72
  rack (>= 1.5.2)
73
73
  sinatra (~> 1.3.4)
74
74
  typhoeus (~> 0.6.9)
75
75
  tzinfo (~> 1.2.0)
76
76
  maven-tools (0.32.5)
77
- minitest (5.6.1)
77
+ minitest (5.8.1)
78
78
  monetize (1.1.0)
79
79
  money (~> 6.5.0)
80
80
  money (6.5.1)
@@ -88,7 +88,7 @@ GEM
88
88
  i18n (~> 0.5)
89
89
  money (>= 5.0.0, < 7.0.0)
90
90
  nokogiri (~> 1.4)
91
- rack (1.5.3)
91
+ rack (1.5.5)
92
92
  rack-protection (1.5.3)
93
93
  rack
94
94
  rack-test (0.6.3)
@@ -123,7 +123,11 @@ PLATFORMS
123
123
  DEPENDENCIES
124
124
  jbundler (~> 0.4.3)
125
125
  jdbc-mariadb (~> 1.1)
126
+ jdbc-postgres (~> 9.4)
126
127
  jdbc-sqlite3 (~> 3.7)
127
128
  killbill-stripe!
128
129
  rake (>= 10.0.0)
129
130
  rspec (~> 2.12.0)
131
+
132
+ BUNDLED WITH
133
+ 1.10.6
data/Jarfile CHANGED
@@ -1,9 +1,11 @@
1
- jar 'org.kill-bill.billing:killbill-api', '0.14'
2
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.9'
3
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.9'
4
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.9'
5
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.9'
6
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-routing', '0.9'
7
- jar 'org.kill-bill.billing:killbill-util:tests', '0.13.7'
1
+ jar 'org.kill-bill.billing:killbill-api', '0.26'
2
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.16'
3
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.16'
4
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.16'
5
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.16'
6
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.16'
7
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.16'
8
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.16'
9
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.15.6'
8
10
  jar 'org.mockito:mockito-all', '1.10.19'
9
11
  jar 'javax.servlet:javax.servlet-api', '3.1.0'
data/Jarfile.lock CHANGED
@@ -1,12 +1,14 @@
1
- org.kill-bill.billing:killbill-api:jar:0.14
1
+ org.kill-bill.billing:killbill-api:jar:0.26
2
2
  com.fasterxml.jackson.core:jackson-annotations:jar:2.4.3
3
3
  joda-time:joda-time:jar:2.3
4
- org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.9
5
- org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.9
6
- org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.9
7
- org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.9
8
- org.kill-bill.billing.plugin:killbill-plugin-api-routing:jar:0.9
9
- org.kill-bill.billing:killbill-util:jar:tests:0.13.7
4
+ org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.16
5
+ org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.16
6
+ org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.16
7
+ org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.16
8
+ org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.16
9
+ org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.16
10
+ org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.16
11
+ org.kill-bill.billing:killbill-util:jar:tests:0.15.6
10
12
  com.fasterxml.jackson.core:jackson-databind:jar:2.4.3
11
13
  com.fasterxml.jackson.core:jackson-core:jar:2.4.3
12
14
  com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.3
@@ -22,9 +24,7 @@ javax.mail:mail:jar:1.4.1
22
24
  javax.activation:activation:jar:1.1
23
25
  org.apache.shiro:shiro-core:jar:1.2.3
24
26
  commons-beanutils:commons-beanutils:jar:1.8.3
25
- commons-logging:commons-logging:jar:1.1.1
26
27
  org.apache.shiro:shiro-ehcache:jar:1.2.3
27
- net.sf.ehcache:ehcache-core:jar:2.5.0
28
28
  org.apache.shiro:shiro-guice:jar:1.2.3
29
29
  com.google.guava:guava:jar:r09
30
30
  com.google.inject:guice:jar:3.0
@@ -32,26 +32,26 @@ aopalliance:aopalliance:jar:1.0
32
32
  com.google.inject.extensions:guice-multibindings:jar:3.0
33
33
  org.jdbi:jdbi:jar:2.62
34
34
  org.joda:joda-money:jar:0.9
35
- org.kill-bill.billing:killbill-internal-api:jar:0.13.7
36
- org.kill-bill.billing:killbill-platform-api:jar:0.2
37
- org.kill-bill.billing:killbill-platform-base:jar:0.2
35
+ org.kill-bill.billing:killbill-internal-api:jar:0.15.6
36
+ org.kill-bill.billing:killbill-platform-api:jar:0.9
37
+ org.kill-bill.billing:killbill-platform-base:jar:0.9
38
38
  com.google.code.findbugs:annotations:jar:3.0.0
39
39
  org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
40
- org.kill-bill.billing:killbill-platform-osgi-api:jar:0.2
40
+ org.kill-bill.billing:killbill-platform-osgi-api:jar:0.9
41
41
  org.osgi:org.osgi.core:jar:5.0.0
42
- org.kill-bill.commons:killbill-clock:jar:0.3
43
- org.kill-bill.commons:killbill-concurrent:jar:0.3
44
- org.kill-bill.commons:killbill-embeddeddb-common:jar:0.3
45
- org.kill-bill.commons:killbill-jdbi:jar:0.3
42
+ org.kill-bill.commons:killbill-clock:jar:0.8
43
+ org.kill-bill.commons:killbill-concurrent:jar:0.8
44
+ org.kill-bill.commons:killbill-embeddeddb-common:jar:0.8
45
+ org.kill-bill.commons:killbill-jdbi:jar:0.8
46
46
  com.h2database:h2:jar:1.4.186
47
47
  javax.inject:javax.inject:jar:1
48
- org.kill-bill.commons:killbill-locker:jar:0.3
49
- org.kill-bill.commons:killbill-queue:jar:0.3
50
- org.kill-bill.commons:killbill-xmlloader:jar:0.3
48
+ org.kill-bill.commons:killbill-locker:jar:0.8
49
+ org.kill-bill.commons:killbill-queue:jar:0.8
50
+ org.kill-bill.commons:killbill-xmlloader:jar:0.8
51
51
  org.skife.config:config-magic:jar:0.14
52
52
  org.slf4j:jcl-over-slf4j:jar:1.7.12
53
53
  org.slf4j:slf4j-api:jar:1.7.12
54
- org.weakref:jmxutils:jar:1.12
54
+ org.weakref:jmxutils:jar:1.18
55
55
  org.mockito:mockito-all:jar:1.10.19
56
56
  javax.servlet:javax.servlet-api:jar:3.1.0
57
57
  org.bouncycastle:bcpkix-jdk15on:jar:1.50
data/NEWS CHANGED
@@ -1,2 +1,19 @@
1
- 0.0.1
1
+ 1.0.0
2
+ Initial release for Kill Bill 0.14.x
3
+
4
+ 0.2.3
5
+ Add thread_safe dependency
6
+
7
+ 0.2.2
8
+ Initial release for Kill Bill 0.13.x
9
+ Stripe API version 2015-02-18 compatibility
10
+ https://github.com/killbill/killbill-plugin-framework-ruby/issues/13
11
+
12
+ 0.2.1
13
+ Add missing require 'openssl'
14
+
15
+ 0.2.0
16
+ Initial release for Kill Bill 0.12.x
17
+
18
+ 0.1.0
2
19
  Initial release
data/README.md CHANGED
@@ -11,6 +11,8 @@ Kill Bill compatibility
11
11
  | Plugin version | Kill Bill version | Stripe version |
12
12
  | -------------: | ----------------: | --------------------------------------------------------: |
13
13
  | 1.0.y | 0.14.z | [2015-02-18](https://stripe.com/docs/upgrades#2015-02-18) |
14
+ | -------------: | ----------------: | --------------------------------------------------------: |
15
+ | 2.0.y | 0.15.z | [2015-02-18](https://stripe.com/docs/upgrades#2015-02-18) |
14
16
 
15
17
  Requirements
16
18
  ------------
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 2.0.0
data/db/ddl.sql CHANGED
@@ -1,122 +1,122 @@
1
- CREATE TABLE `stripe_payment_methods` (
2
- `id` int(11) NOT NULL AUTO_INCREMENT,
3
- `kb_payment_method_id` varchar(255) DEFAULT NULL,
4
- `token` varchar(255) DEFAULT NULL,
5
- `stripe_customer_id` varchar(255) DEFAULT NULL,
6
- `cc_first_name` varchar(255) DEFAULT NULL,
7
- `cc_last_name` varchar(255) DEFAULT NULL,
8
- `cc_type` varchar(255) DEFAULT NULL,
9
- `cc_exp_month` varchar(255) DEFAULT NULL,
10
- `cc_exp_year` varchar(255) DEFAULT NULL,
11
- `cc_number` varchar(255) DEFAULT NULL,
12
- `cc_last_4` varchar(255) DEFAULT NULL,
13
- `cc_start_month` varchar(255) DEFAULT NULL,
14
- `cc_start_year` varchar(255) DEFAULT NULL,
15
- `cc_issue_number` varchar(255) DEFAULT NULL,
16
- `cc_verification_value` varchar(255) DEFAULT NULL,
17
- `cc_track_data` varchar(255) DEFAULT NULL,
18
- `address1` varchar(255) DEFAULT NULL,
19
- `address2` varchar(255) DEFAULT NULL,
20
- `city` varchar(255) DEFAULT NULL,
21
- `state` varchar(255) DEFAULT NULL,
22
- `zip` varchar(255) DEFAULT NULL,
23
- `country` varchar(255) DEFAULT NULL,
24
- `is_deleted` tinyint(1) NOT NULL DEFAULT '0',
25
- `created_at` datetime NOT NULL,
26
- `updated_at` datetime NOT NULL,
27
- `kb_account_id` varchar(255) DEFAULT NULL,
28
- `kb_tenant_id` varchar(255) DEFAULT NULL,
29
- PRIMARY KEY (`id`),
30
- KEY `index_stripe_payment_methods_on_kb_account_id` (`kb_account_id`),
31
- KEY `index_stripe_payment_methods_on_kb_payment_method_id` (`kb_payment_method_id`)
32
- ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
1
+ CREATE TABLE stripe_payment_methods (
2
+ id serial unique,
3
+ kb_payment_method_id varchar(255) DEFAULT NULL,
4
+ token varchar(255) DEFAULT NULL,
5
+ stripe_customer_id varchar(255) DEFAULT NULL,
6
+ cc_first_name varchar(255) DEFAULT NULL,
7
+ cc_last_name varchar(255) DEFAULT NULL,
8
+ cc_type varchar(255) DEFAULT NULL,
9
+ cc_exp_month varchar(255) DEFAULT NULL,
10
+ cc_exp_year varchar(255) DEFAULT NULL,
11
+ cc_number varchar(255) DEFAULT NULL,
12
+ cc_last_4 varchar(255) DEFAULT NULL,
13
+ cc_start_month varchar(255) DEFAULT NULL,
14
+ cc_start_year varchar(255) DEFAULT NULL,
15
+ cc_issue_number varchar(255) DEFAULT NULL,
16
+ cc_verification_value varchar(255) DEFAULT NULL,
17
+ cc_track_data varchar(255) DEFAULT NULL,
18
+ address1 varchar(255) DEFAULT NULL,
19
+ address2 varchar(255) DEFAULT NULL,
20
+ city varchar(255) DEFAULT NULL,
21
+ state varchar(255) DEFAULT NULL,
22
+ zip varchar(255) DEFAULT NULL,
23
+ country varchar(255) DEFAULT NULL,
24
+ is_deleted boolean NOT NULL DEFAULT '0',
25
+ created_at datetime NOT NULL,
26
+ updated_at datetime NOT NULL,
27
+ kb_account_id varchar(255) DEFAULT NULL,
28
+ kb_tenant_id varchar(255) DEFAULT NULL,
29
+ PRIMARY KEY (id)
30
+ ) /*! ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin */;
31
+ CREATE INDEX index_stripe_payment_methods_kb_account_id ON stripe_payment_methods(kb_account_id);
32
+ CREATE INDEX index_stripe_payment_methods_kb_payment_method_id ON stripe_payment_methods(kb_payment_method_id);
33
33
 
34
- CREATE TABLE `stripe_transactions` (
35
- `id` int(11) NOT NULL AUTO_INCREMENT,
36
- `stripe_response_id` int(11) NOT NULL,
37
- `api_call` varchar(255) NOT NULL,
38
- `kb_payment_id` varchar(255) NOT NULL,
39
- `kb_payment_transaction_id` varchar(255) NOT NULL,
40
- `transaction_type` varchar(255) NOT NULL,
41
- `payment_processor_account_id` varchar(255) DEFAULT NULL,
42
- `txn_id` varchar(255) DEFAULT NULL,
43
- `amount_in_cents` int(11) DEFAULT NULL,
44
- `currency` varchar(255) DEFAULT NULL,
45
- `created_at` datetime NOT NULL,
46
- `updated_at` datetime NOT NULL,
47
- `kb_account_id` varchar(255) NOT NULL,
48
- `kb_tenant_id` varchar(255) NOT NULL,
49
- PRIMARY KEY (`id`),
50
- KEY `index_stripe_transactions_on_kb_payment_id` (`kb_payment_id`)
51
- ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
34
+ CREATE TABLE stripe_transactions (
35
+ id serial unique,
36
+ stripe_response_id bigint /*! unsigned */ NOT NULL,
37
+ api_call varchar(255) NOT NULL,
38
+ kb_payment_id varchar(255) NOT NULL,
39
+ kb_payment_transaction_id varchar(255) NOT NULL,
40
+ transaction_type varchar(255) NOT NULL,
41
+ payment_processor_account_id varchar(255) DEFAULT NULL,
42
+ txn_id varchar(255) DEFAULT NULL,
43
+ amount_in_cents int DEFAULT NULL,
44
+ currency varchar(255) DEFAULT NULL,
45
+ created_at datetime NOT NULL,
46
+ updated_at datetime NOT NULL,
47
+ kb_account_id varchar(255) NOT NULL,
48
+ kb_tenant_id varchar(255) NOT NULL,
49
+ PRIMARY KEY (id)
50
+ ) /*! ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin */;
51
+ CREATE INDEX index_stripe_transactions_kb_payment_id ON stripe_transactions(kb_payment_id);
52
52
 
53
- CREATE TABLE `stripe_responses` (
54
- `id` int(11) NOT NULL AUTO_INCREMENT,
55
- `api_call` varchar(255) NOT NULL,
56
- `kb_payment_id` varchar(255) DEFAULT NULL,
57
- `kb_payment_transaction_id` varchar(255) DEFAULT NULL,
58
- `transaction_type` varchar(255) DEFAULT NULL,
59
- `payment_processor_account_id` varchar(255) DEFAULT NULL,
60
- `message` varchar(255) DEFAULT NULL,
61
- `authorization` varchar(255) DEFAULT NULL,
62
- `fraud_review` tinyint(1) DEFAULT NULL,
63
- `test` tinyint(1) DEFAULT NULL,
64
- `params_id` varchar(255) DEFAULT NULL,
65
- `params_object` varchar(255) DEFAULT NULL,
66
- `params_created` varchar(255) DEFAULT NULL,
67
- `params_livemode` varchar(255) DEFAULT NULL,
68
- `params_paid` varchar(255) DEFAULT NULL,
69
- `params_amount` varchar(255) DEFAULT NULL,
70
- `params_currency` varchar(255) DEFAULT NULL,
71
- `params_refunded` varchar(255) DEFAULT NULL,
72
- `params_card_id` varchar(255) DEFAULT NULL,
73
- `params_card_object` varchar(255) DEFAULT NULL,
74
- `params_card_last4` varchar(255) DEFAULT NULL,
75
- `params_card_type` varchar(255) DEFAULT NULL,
76
- `params_card_exp_month` varchar(255) DEFAULT NULL,
77
- `params_card_exp_year` varchar(255) DEFAULT NULL,
78
- `params_card_fingerprint` varchar(255) DEFAULT NULL,
79
- `params_card_customer` varchar(255) DEFAULT NULL,
80
- `params_card_country` varchar(255) DEFAULT NULL,
81
- `params_card_name` varchar(255) DEFAULT NULL,
82
- `params_card_address_line1` varchar(255) DEFAULT NULL,
83
- `params_card_address_line2` varchar(255) DEFAULT NULL,
84
- `params_card_address_city` varchar(255) DEFAULT NULL,
85
- `params_card_address_state` varchar(255) DEFAULT NULL,
86
- `params_card_address_zip` varchar(255) DEFAULT NULL,
87
- `params_card_address_country` varchar(255) DEFAULT NULL,
88
- `params_card_cvc_check` varchar(255) DEFAULT NULL,
89
- `params_card_address_line1_check` varchar(255) DEFAULT NULL,
90
- `params_card_address_zip_check` varchar(255) DEFAULT NULL,
91
- `params_captured` varchar(255) DEFAULT NULL,
92
- `params_refunds` text DEFAULT NULL,
93
- `params_balance_transaction` varchar(255) DEFAULT NULL,
94
- `params_failure_message` varchar(255) DEFAULT NULL,
95
- `params_failure_code` varchar(255) DEFAULT NULL,
96
- `params_amount_refunded` varchar(255) DEFAULT NULL,
97
- `params_customer` varchar(255) DEFAULT NULL,
98
- `params_email` varchar(255) DEFAULT NULL,
99
- `params_delinquent` varchar(255) DEFAULT NULL,
100
- `params_subscription` varchar(255) DEFAULT NULL,
101
- `params_discount` varchar(255) DEFAULT NULL,
102
- `params_account_balance` varchar(255) DEFAULT NULL,
103
- `params_cards` text DEFAULT NULL,
104
- `params_invoice` varchar(255) DEFAULT NULL,
105
- `params_description` varchar(255) DEFAULT NULL,
106
- `params_dispute` varchar(255) DEFAULT NULL,
107
- `params_metadata` varchar(255) DEFAULT NULL,
108
- `params_error_type` varchar(255) DEFAULT NULL,
109
- `params_error_message` varchar(255) DEFAULT NULL,
110
- `avs_result_code` varchar(255) DEFAULT NULL,
111
- `avs_result_message` varchar(255) DEFAULT NULL,
112
- `avs_result_street_match` varchar(255) DEFAULT NULL,
113
- `avs_result_postal_match` varchar(255) DEFAULT NULL,
114
- `cvv_result_code` varchar(255) DEFAULT NULL,
115
- `cvv_result_message` varchar(255) DEFAULT NULL,
116
- `success` tinyint(1) DEFAULT NULL,
117
- `created_at` datetime NOT NULL,
118
- `updated_at` datetime NOT NULL,
119
- `kb_account_id` varchar(255) DEFAULT NULL,
120
- `kb_tenant_id` varchar(255) DEFAULT NULL,
121
- PRIMARY KEY (`id`)
122
- ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
53
+ CREATE TABLE stripe_responses (
54
+ id serial unique,
55
+ api_call varchar(255) NOT NULL,
56
+ kb_payment_id varchar(255) DEFAULT NULL,
57
+ kb_payment_transaction_id varchar(255) DEFAULT NULL,
58
+ transaction_type varchar(255) DEFAULT NULL,
59
+ payment_processor_account_id varchar(255) DEFAULT NULL,
60
+ message varchar(255) DEFAULT NULL,
61
+ authorisation varchar(255) DEFAULT NULL,
62
+ fraud_review boolean DEFAULT NULL,
63
+ test boolean DEFAULT NULL,
64
+ params_id varchar(255) DEFAULT NULL,
65
+ params_object varchar(255) DEFAULT NULL,
66
+ params_created varchar(255) DEFAULT NULL,
67
+ params_livemode varchar(255) DEFAULT NULL,
68
+ params_paid varchar(255) DEFAULT NULL,
69
+ params_amount varchar(255) DEFAULT NULL,
70
+ params_currency varchar(255) DEFAULT NULL,
71
+ params_refunded varchar(255) DEFAULT NULL,
72
+ params_card_id varchar(255) DEFAULT NULL,
73
+ params_card_object varchar(255) DEFAULT NULL,
74
+ params_card_last4 varchar(255) DEFAULT NULL,
75
+ params_card_type varchar(255) DEFAULT NULL,
76
+ params_card_exp_month varchar(255) DEFAULT NULL,
77
+ params_card_exp_year varchar(255) DEFAULT NULL,
78
+ params_card_fingerprint varchar(255) DEFAULT NULL,
79
+ params_card_customer varchar(255) DEFAULT NULL,
80
+ params_card_country varchar(255) DEFAULT NULL,
81
+ params_card_name varchar(255) DEFAULT NULL,
82
+ params_card_address_line1 varchar(255) DEFAULT NULL,
83
+ params_card_address_line2 varchar(255) DEFAULT NULL,
84
+ params_card_address_city varchar(255) DEFAULT NULL,
85
+ params_card_address_state varchar(255) DEFAULT NULL,
86
+ params_card_address_zip varchar(255) DEFAULT NULL,
87
+ params_card_address_country varchar(255) DEFAULT NULL,
88
+ params_card_cvc_check varchar(255) DEFAULT NULL,
89
+ params_card_address_line1_check varchar(255) DEFAULT NULL,
90
+ params_card_address_zip_check varchar(255) DEFAULT NULL,
91
+ params_captured varchar(255) DEFAULT NULL,
92
+ params_refunds text DEFAULT NULL,
93
+ params_balance_transaction varchar(255) DEFAULT NULL,
94
+ params_failure_message varchar(255) DEFAULT NULL,
95
+ params_failure_code varchar(255) DEFAULT NULL,
96
+ params_amount_refunded varchar(255) DEFAULT NULL,
97
+ params_customer varchar(255) DEFAULT NULL,
98
+ params_email varchar(255) DEFAULT NULL,
99
+ params_delinquent varchar(255) DEFAULT NULL,
100
+ params_subscription varchar(255) DEFAULT NULL,
101
+ params_discount varchar(255) DEFAULT NULL,
102
+ params_account_balance varchar(255) DEFAULT NULL,
103
+ params_cards text DEFAULT NULL,
104
+ params_invoice varchar(255) DEFAULT NULL,
105
+ params_description varchar(255) DEFAULT NULL,
106
+ params_dispute varchar(255) DEFAULT NULL,
107
+ params_metadata varchar(255) DEFAULT NULL,
108
+ params_error_type varchar(255) DEFAULT NULL,
109
+ params_error_message varchar(255) DEFAULT NULL,
110
+ avs_result_code varchar(255) DEFAULT NULL,
111
+ avs_result_message varchar(255) DEFAULT NULL,
112
+ avs_result_street_match varchar(255) DEFAULT NULL,
113
+ avs_result_postal_match varchar(255) DEFAULT NULL,
114
+ cvv_result_code varchar(255) DEFAULT NULL,
115
+ cvv_result_message varchar(255) DEFAULT NULL,
116
+ success boolean DEFAULT NULL,
117
+ created_at datetime NOT NULL,
118
+ updated_at datetime NOT NULL,
119
+ kb_account_id varchar(255) DEFAULT NULL,
120
+ kb_tenant_id varchar(255) DEFAULT NULL,
121
+ PRIMARY KEY (id)
122
+ ) /*! ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin */;
@@ -22,16 +22,15 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.rdoc_options << '--exclude' << '.'
24
24
 
25
- s.add_dependency 'killbill', '~> 4.0.0'
25
+ s.add_dependency 'killbill', '~> 5.2.0'
26
26
 
27
27
  s.add_dependency 'sinatra', '~> 1.3.4'
28
28
  s.add_dependency 'thread_safe', '~> 0.3.4'
29
29
  s.add_dependency 'activerecord', '~> 4.1.0'
30
30
  if defined?(JRUBY_VERSION)
31
31
  s.add_dependency 'activerecord-bogacs', '~> 0.3'
32
- s.add_dependency 'activerecord-jdbc-adapter', '~> 1.3'
33
- # Required to avoid errors like java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DERBoolean
34
- s.add_dependency 'jruby-openssl', '~> 0.9.6'
32
+ s.add_dependency 'activerecord-jdbc-adapter', '~> 1.3', '< 1.5'
33
+ s.add_dependency 'jruby-openssl', '~> 0.9.7'
35
34
  end
36
35
  s.add_dependency 'actionpack', '~> 4.1.0'
37
36
  s.add_dependency 'actionview', '~> 4.1.0'
@@ -46,6 +45,7 @@ Gem::Specification.new do |s|
46
45
  if defined?(JRUBY_VERSION)
47
46
  s.add_development_dependency 'jdbc-sqlite3', '~> 3.7'
48
47
  s.add_development_dependency 'jdbc-mariadb', '~> 1.1'
48
+ s.add_development_dependency 'jdbc-postgres', '~> 9.4'
49
49
  else
50
50
  s.add_development_dependency 'sqlite3', '~> 1.3.7'
51
51
  end
@@ -7,13 +7,13 @@ describe Killbill::Stripe::PaymentPlugin do
7
7
  include ::Killbill::Plugin::ActiveMerchant::RSpec
8
8
 
9
9
  before(:each) do
10
+ @plugin = build_plugin(::Killbill::Stripe::PaymentPlugin, 'stripe')
11
+ @plugin.start_plugin
12
+
10
13
  ::Killbill::Stripe::StripePaymentMethod.delete_all
11
14
  ::Killbill::Stripe::StripeResponse.delete_all
12
15
  ::Killbill::Stripe::StripeTransaction.delete_all
13
16
 
14
- @plugin = build_plugin(::Killbill::Stripe::PaymentPlugin, 'stripe')
15
- @plugin.start_plugin
16
-
17
17
  @call_context = build_call_context
18
18
 
19
19
  @properties = []
data/stripe.yml CHANGED
@@ -7,6 +7,9 @@
7
7
  # SQLite (development)
8
8
  :adapter: sqlite3
9
9
  :database: test.db
10
+ # For PostgreSQL
11
+ # :adapter: postgresql
12
+ # :database: 'killbill'
10
13
  # For MySQL
11
14
  # :adapter: mysql
12
15
  # :username: 'killbill'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
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: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2015-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill
@@ -16,12 +16,12 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 5.2.0
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 4.0.0
24
+ version: 5.2.0
25
25
  prerelease: false
26
26
  type: :runtime
27
27
  - !ruby/object:Gem::Dependency
@@ -87,11 +87,17 @@ dependencies:
87
87
  - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.3'
90
+ - - <
91
+ - !ruby/object:Gem::Version
92
+ version: '1.5'
90
93
  requirement: !ruby/object:Gem::Requirement
91
94
  requirements:
92
95
  - - ~>
93
96
  - !ruby/object:Gem::Version
94
97
  version: '1.3'
98
+ - - <
99
+ - !ruby/object:Gem::Version
100
+ version: '1.5'
95
101
  prerelease: false
96
102
  type: :runtime
97
103
  - !ruby/object:Gem::Dependency
@@ -100,12 +106,12 @@ dependencies:
100
106
  requirements:
101
107
  - - ~>
102
108
  - !ruby/object:Gem::Version
103
- version: 0.9.6
109
+ version: 0.9.7
104
110
  requirement: !ruby/object:Gem::Requirement
105
111
  requirements:
106
112
  - - ~>
107
113
  - !ruby/object:Gem::Version
108
- version: 0.9.6
114
+ version: 0.9.7
109
115
  prerelease: false
110
116
  type: :runtime
111
117
  - !ruby/object:Gem::Dependency
@@ -262,6 +268,20 @@ dependencies:
262
268
  version: '1.1'
263
269
  prerelease: false
264
270
  type: :development
271
+ - !ruby/object:Gem::Dependency
272
+ name: jdbc-postgres
273
+ version_requirements: !ruby/object:Gem::Requirement
274
+ requirements:
275
+ - - ~>
276
+ - !ruby/object:Gem::Version
277
+ version: '9.4'
278
+ requirement: !ruby/object:Gem::Requirement
279
+ requirements:
280
+ - - ~>
281
+ - !ruby/object:Gem::Version
282
+ version: '9.4'
283
+ prerelease: false
284
+ type: :development
265
285
  description: Kill Bill payment plugin for Stripe.
266
286
  email: killbilling-users@googlegroups.com
267
287
  executables: []
@@ -321,8 +341,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
341
  version: '0'
322
342
  requirements: []
323
343
  rubyforge_project:
324
- rubygems_version: 2.1.9
344
+ rubygems_version: 2.4.6
325
345
  signing_key:
326
346
  specification_version: 4
327
347
  summary: Plugin to use Stripe as a gateway.
328
- test_files: []
348
+ test_files:
349
+ - spec/spec_helper.rb
350
+ - spec/stripe/base_plugin_spec.rb
351
+ - spec/stripe/remote/integration_spec.rb