killbill-litle 1.10.0 → 2.0.0

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.
@@ -2,195 +2,124 @@ require 'spec_helper'
2
2
 
3
3
  ActiveMerchant::Billing::Base.mode = :test
4
4
 
5
- class FakeJavaUserAccountApi
6
- attr_accessor :accounts
5
+ describe Killbill::Litle::PaymentPlugin do
7
6
 
8
- def initialize
9
- @accounts = []
10
- end
7
+ include ::Killbill::Plugin::ActiveMerchant::RSpec
11
8
 
12
- def get_account_by_id(id, context)
13
- @accounts.find { |account| account.id == id.to_s }
14
- end
9
+ before(:each) do
10
+ ::Killbill::Litle::LitlePaymentMethod.delete_all
11
+ ::Killbill::Litle::LitleResponse.delete_all
12
+ ::Killbill::Litle::LitleTransaction.delete_all
15
13
 
16
- def get_account_by_key(external_key, context)
17
- @accounts.find { |account| account.external_key == external_key.to_s }
18
- end
19
- end
14
+ @plugin = build_plugin(::Killbill::Litle::PaymentPlugin, 'litle')
15
+ @plugin.start_plugin
20
16
 
21
- describe Killbill::Litle::PaymentPlugin do
22
- before(:each) do
23
- @plugin = Killbill::Litle::PaymentPlugin.new
17
+ @call_context = build_call_context
24
18
 
25
- @account_api = FakeJavaUserAccountApi.new
26
- svcs = {:account_user_api => @account_api}
27
- @plugin.kb_apis = Killbill::Plugin::KillbillApi.new('litle', svcs)
19
+ @properties = []
20
+ @pm = create_payment_method(::Killbill::Litle::LitlePaymentMethod, nil, @call_context.tenant_id, @properties)
21
+ @amount = BigDecimal.new('100')
22
+ @currency = 'USD'
28
23
 
29
- @plugin.logger = Logger.new(STDOUT)
30
- @plugin.logger.level = Logger::INFO
31
- @plugin.conf_dir = File.expand_path(File.dirname(__FILE__) + '../../../../')
32
- @plugin.start_plugin
24
+ kb_payment_id = SecureRandom.uuid
25
+ 1.upto(6) do
26
+ @kb_payment = @plugin.kb_apis.proxied_services[:payment_api].add_payment(kb_payment_id)
27
+ end
33
28
  end
34
29
 
35
30
  after(:each) do
36
31
  @plugin.stop_plugin
37
32
  end
38
33
 
39
- it 'should be able to create and retrieve payment methods' do
40
- pm = create_payment_method
41
-
42
- pms = @plugin.get_payment_methods(pm.kb_account_id)
43
- pms.size.should == 1
44
- pms[0].external_payment_method_id.should == pm.litle_token
45
-
46
- pm_details = @plugin.get_payment_method_detail(pm.kb_account_id, pm.kb_payment_method_id)
47
- pm_details.external_payment_method_id.should == pm.litle_token
48
-
49
- pms_found = @plugin.search_payment_methods pm.cc_last_4
50
- pms_found = pms_found.iterator.to_a
51
- pms_found.size.should == 1
52
- pms_found.first.external_payment_method_id.should == pm_details.external_payment_method_id
53
-
54
- @plugin.delete_payment_method(pm.kb_account_id, pm.kb_payment_method_id)
55
-
56
- @plugin.get_payment_methods(pm.kb_account_id).size.should == 0
57
- lambda { @plugin.get_payment_method_detail(pm.kb_account_id, pm.kb_payment_method_id) }.should raise_error RuntimeError
34
+ it 'should be able to charge a Credit Card directly' do
35
+ properties = build_pm_properties
36
+
37
+ # We created the payment method, hence the rows
38
+ Killbill::Litle::LitleResponse.all.size.should == 1
39
+ Killbill::Litle::LitleTransaction.all.size.should == 0
40
+
41
+ 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)
42
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
43
+ payment_response.amount.should == @amount
44
+ payment_response.transaction_type.should == :PURCHASE
45
+
46
+ responses = Killbill::Litle::LitleResponse.all
47
+ responses.size.should == 2
48
+ responses[0].api_call.should == 'add_payment_method'
49
+ responses[0].message.should == 'Approved'
50
+ responses[1].api_call.should == 'purchase'
51
+ responses[1].message.should == 'Approved'
52
+ transactions = Killbill::Litle::LitleTransaction.all
53
+ transactions.size.should == 1
54
+ transactions[0].api_call.should == 'purchase'
58
55
  end
59
56
 
60
57
  it 'should be able to charge and refund' do
61
- pm = create_payment_method
62
- amount = BigDecimal.new("100")
63
- currency = 'USD'
64
- kb_payment_id = SecureRandom.uuid
65
-
66
- payment_response = @plugin.process_payment pm.kb_account_id, kb_payment_id, pm.kb_payment_method_id, amount, currency
67
- payment_response.amount.should == amount
68
- payment_response.status.should == :PROCESSED
69
-
70
- # Verify our table directly
71
- response = Killbill::Litle::LitleResponse.find_by_api_call_and_kb_payment_id :charge, kb_payment_id
72
- response.test.should be_true
73
- response.success.should be_true
74
- response.message.should == 'Approved'
75
- response.params_litleonelineresponse_saleresponse_order_id.should == Killbill::Litle::Utils.compact_uuid(kb_payment_id)
76
- response.params_litleonelineresponse_saleresponse_customer_id.should == pm.kb_account_id
77
-
78
- payment_response = @plugin.get_payment_info pm.kb_account_id, kb_payment_id
79
- payment_response.amount.should == amount
80
- payment_response.status.should == :PROCESSED
81
-
82
- # Check we cannot refund an amount greater than the original charge
83
- lambda { @plugin.process_refund pm.kb_account_id, kb_payment_id, amount + 1, currency }.should raise_error RuntimeError
84
-
85
- refund_response = @plugin.process_refund pm.kb_account_id, kb_payment_id, amount, currency
86
- refund_response.amount.should == amount
87
- refund_response.status.should == :PROCESSED
88
-
89
- # Verify our table directly
90
- response = Killbill::Litle::LitleResponse.find_by_api_call_and_kb_payment_id :refund, kb_payment_id
91
- response.test.should be_true
92
- response.success.should be_true
93
-
94
- # Check we can retrieve the refund
95
- refund_responses = @plugin.get_refund_info pm.kb_account_id, kb_payment_id
96
- refund_responses.size.should == 1
97
- # Apparently, Litle returns positive amounts for refunds
98
- refund_responses[0].amount.should == amount
99
- refund_responses[0].status.should == :PROCESSED
100
-
101
- # Make sure we can charge again the same payment method
102
- second_amount = BigDecimal.new("294.71")
103
- second_kb_payment_id = SecureRandom.uuid
104
-
105
- payment_response = @plugin.process_payment pm.kb_account_id, second_kb_payment_id, pm.kb_payment_method_id, second_amount, currency
106
- payment_response.amount.should == second_amount
107
- payment_response.status.should == :PROCESSED
58
+ 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)
59
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
60
+ payment_response.amount.should == @amount
61
+ payment_response.transaction_type.should == :PURCHASE
62
+
63
+ # Try a full refund
64
+ refund_response = @plugin.refund_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[1].id, @pm.kb_payment_method_id, @amount, @currency, @properties, @call_context)
65
+ refund_response.status.should eq(:PROCESSED), refund_response.gateway_error
66
+ refund_response.amount.should == @amount
67
+ refund_response.transaction_type.should == :REFUND
108
68
  end
109
69
 
110
- private
111
-
112
- def create_payment_method
113
- kb_account_id = SecureRandom.uuid
114
- kb_payment_method_id = SecureRandom.uuid
115
-
116
- # Create a new account
117
- create_kb_account kb_account_id
118
-
119
- # Generate a token in Litle
120
- paypage_registration_id = '123456789012345678901324567890abcdefghi'
121
- cc_first_name = 'John'
122
- cc_last_name = 'Doe'
123
- cc_type = 'VISA'
124
- cc_exp_month = 12
125
- cc_exp_year = 2015
126
- cc_last_4 = 1234
127
- address1 = '5, oakriu road'
128
- address2 = 'apt. 298'
129
- city = 'Gdio Foia'
130
- state = 'FL'
131
- zip = 49302
132
- country = 'IFP'
133
-
134
- properties = []
135
- properties << create_pm_kv_info('paypageRegistrationId', paypage_registration_id)
136
- properties << create_pm_kv_info('ccFirstName', cc_first_name)
137
- properties << create_pm_kv_info('ccLastName', cc_last_name)
138
- properties << create_pm_kv_info('ccType', cc_type)
139
- properties << create_pm_kv_info('ccExpMonth', cc_exp_month)
140
- properties << create_pm_kv_info('ccExpYear', cc_exp_year)
141
- properties << create_pm_kv_info('ccLast4', cc_last_4)
142
- properties << create_pm_kv_info('address1', address1)
143
- properties << create_pm_kv_info('address2', address2)
144
- properties << create_pm_kv_info('city', city)
145
- properties << create_pm_kv_info('state', state)
146
- properties << create_pm_kv_info('zip', zip)
147
- properties << create_pm_kv_info('country', country)
148
-
149
- info = Killbill::Plugin::Model::PaymentMethodPlugin.new
150
- info.properties = properties
151
- payment_method = @plugin.add_payment_method(kb_account_id, kb_payment_method_id, info, true)
152
-
153
- pm = Killbill::Litle::LitlePaymentMethod.from_kb_payment_method_id kb_payment_method_id
154
- pm.should == payment_method
155
- pm.kb_account_id.should == kb_account_id
156
- pm.kb_payment_method_id.should == kb_payment_method_id
157
- pm.litle_token.should_not be_nil
158
- pm.cc_first_name.should == cc_first_name
159
- pm.cc_last_name.should == cc_last_name
160
- pm.cc_type.should == cc_type
161
- pm.cc_exp_month.should == cc_exp_month
162
- pm.cc_exp_year.should == cc_exp_year
163
- pm.cc_last_4.should == cc_last_4
164
- pm.address1.should == address1
165
- pm.address2.should == address2
166
- pm.city.should == city
167
- pm.state.should == state
168
- pm.zip.should == zip.to_s
169
- pm.country.should == country
170
-
171
- pm
70
+ it 'should be able to auth, capture and refund' do
71
+ payment_response = @plugin.authorize_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[0].id, @pm.kb_payment_method_id, @amount, @currency, @properties, @call_context)
72
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
73
+ payment_response.amount.should == @amount
74
+ payment_response.transaction_type.should == :AUTHORIZE
75
+
76
+ # Try multiple partial captures
77
+ partial_capture_amount = BigDecimal.new('10')
78
+ 1.upto(3) do |i|
79
+ payment_response = @plugin.capture_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[i].id, @pm.kb_payment_method_id, partial_capture_amount, @currency, @properties, @call_context)
80
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
81
+ payment_response.amount.should == partial_capture_amount
82
+ payment_response.transaction_type.should == :CAPTURE
83
+ end
84
+
85
+ # Try a partial refund
86
+ refund_response = @plugin.refund_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[4].id, @pm.kb_payment_method_id, partial_capture_amount, @currency, @properties, @call_context)
87
+ refund_response.status.should eq(:PROCESSED), refund_response.gateway_error
88
+ refund_response.amount.should == partial_capture_amount
89
+ refund_response.transaction_type.should == :REFUND
90
+
91
+ # Try to capture again
92
+ payment_response = @plugin.capture_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[5].id, @pm.kb_payment_method_id, partial_capture_amount, @currency, @properties, @call_context)
93
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
94
+ payment_response.amount.should == partial_capture_amount
95
+ payment_response.transaction_type.should == :CAPTURE
172
96
  end
173
97
 
174
- def create_kb_account(kb_account_id)
175
- external_key = Time.now.to_i.to_s + '-test'
176
- email = external_key + '@tester.com'
177
-
178
- account = Killbill::Plugin::Model::Account.new
179
- account.id = kb_account_id
180
- account.external_key = external_key
181
- account.email = email
182
- account.name = 'Integration spec'
183
- account.currency = :USD
184
-
185
- @account_api.accounts << account
98
+ it 'should be able to auth and void' do
99
+ payment_response = @plugin.authorize_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[0].id, @pm.kb_payment_method_id, @amount, @currency, @properties, @call_context)
100
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
101
+ payment_response.amount.should == @amount
102
+ payment_response.transaction_type.should == :AUTHORIZE
186
103
 
187
- return external_key, kb_account_id
104
+ payment_response = @plugin.void_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[1].id, @pm.kb_payment_method_id, @properties, @call_context)
105
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
106
+ payment_response.transaction_type.should == :VOID
188
107
  end
189
108
 
190
- def create_pm_kv_info(key, value)
191
- prop = Killbill::Plugin::Model::PaymentMethodKVInfo.new
192
- prop.key = key
193
- prop.value = value
194
- prop
109
+ it 'should be able to auth, partial capture and void' do
110
+ payment_response = @plugin.authorize_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[0].id, @pm.kb_payment_method_id, @amount, @currency, @properties, @call_context)
111
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
112
+ payment_response.amount.should == @amount
113
+ payment_response.transaction_type.should == :AUTHORIZE
114
+
115
+ partial_capture_amount = BigDecimal.new('10')
116
+ payment_response = @plugin.capture_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[1].id, @pm.kb_payment_method_id, partial_capture_amount, @currency, @properties, @call_context)
117
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
118
+ payment_response.amount.should == partial_capture_amount
119
+ payment_response.transaction_type.should == :CAPTURE
120
+
121
+ payment_response = @plugin.void_payment(@pm.kb_account_id, @kb_payment.id, @kb_payment.transactions[2].id, @pm.kb_payment_method_id, @properties, @call_context)
122
+ payment_response.status.should eq(:PROCESSED), payment_response.gateway_error
123
+ payment_response.transaction_type.should == :VOID
195
124
  end
196
125
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'bundler'
2
2
  require 'litle'
3
+ require 'killbill/helpers/active_merchant/killbill_spec_helper'
3
4
 
4
5
  require 'logger'
5
6
 
@@ -13,25 +14,11 @@ end
13
14
 
14
15
  require 'active_record'
15
16
  ActiveRecord::Base.establish_connection(
16
- :adapter => 'sqlite3',
17
- :database => 'test.db'
17
+ :adapter => 'sqlite3',
18
+ :database => 'test.db'
18
19
  )
19
20
  # For debugging
20
21
  #ActiveRecord::Base.logger = Logger.new(STDOUT)
21
22
  # Create the schema
22
23
  require File.expand_path(File.dirname(__FILE__) + '../../db/schema.rb')
23
24
 
24
- begin
25
- require 'securerandom'
26
- SecureRandom.uuid
27
- rescue LoadError, NoMethodError
28
- # See http://jira.codehaus.org/browse/JRUBY-6176
29
- module SecureRandom
30
- def self.uuid
31
- ary = self.random_bytes(16).unpack("NnnnnN")
32
- ary[2] = (ary[2] & 0x0fff) | 0x4000
33
- ary[3] = (ary[3] & 0x3fff) | 0x8000
34
- "%08x-%04x-%04x-%04x-%04x%08x" % ary
35
- end unless respond_to?(:uuid)
36
- end
37
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-litle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.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: 2014-03-13 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill
@@ -16,26 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0
19
+ version: 4.0.0
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 3.0.0
24
+ version: 4.0.0
25
25
  prerelease: false
26
26
  type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
- name: activemerchant
28
+ name: sinatra
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.4
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: 1.3.4
39
+ prerelease: false
40
+ type: :runtime
41
+ - !ruby/object:Gem::Dependency
42
+ name: thread_safe
29
43
  version_requirements: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - ~>
32
46
  - !ruby/object:Gem::Version
33
- version: 1.36.0
47
+ version: 0.3.4
34
48
  requirement: !ruby/object:Gem::Requirement
35
49
  requirements:
36
50
  - - ~>
37
51
  - !ruby/object:Gem::Version
38
- version: 1.36.0
52
+ version: 0.3.4
39
53
  prerelease: false
40
54
  type: :runtime
41
55
  - !ruby/object:Gem::Dependency
@@ -44,110 +58,138 @@ dependencies:
44
58
  requirements:
45
59
  - - ~>
46
60
  - !ruby/object:Gem::Version
47
- version: 3.2.1
61
+ version: 4.1.0
48
62
  requirement: !ruby/object:Gem::Requirement
49
63
  requirements:
50
64
  - - ~>
51
65
  - !ruby/object:Gem::Version
52
- version: 3.2.1
66
+ version: 4.1.0
53
67
  prerelease: false
54
68
  type: :runtime
55
69
  - !ruby/object:Gem::Dependency
56
- name: money
70
+ name: activerecord-bogacs
57
71
  version_requirements: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - ~>
60
74
  - !ruby/object:Gem::Version
61
- version: 6.0.0
75
+ version: '0.3'
62
76
  requirement: !ruby/object:Gem::Requirement
63
77
  requirements:
64
78
  - - ~>
65
79
  - !ruby/object:Gem::Version
66
- version: 6.0.0
80
+ version: '0.3'
67
81
  prerelease: false
68
82
  type: :runtime
69
83
  - !ruby/object:Gem::Dependency
70
- name: sinatra
84
+ name: activerecord-jdbc-adapter
71
85
  version_requirements: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - ~>
74
88
  - !ruby/object:Gem::Version
75
- version: 1.3.4
89
+ version: '1.3'
76
90
  requirement: !ruby/object:Gem::Requirement
77
91
  requirements:
78
92
  - - ~>
79
93
  - !ruby/object:Gem::Version
80
- version: 1.3.4
94
+ version: '1.3'
81
95
  prerelease: false
82
96
  type: :runtime
83
97
  - !ruby/object:Gem::Dependency
84
- name: LitleOnline
98
+ name: jruby-openssl
85
99
  version_requirements: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - ~>
88
102
  - !ruby/object:Gem::Version
89
- version: 8.16.0
103
+ version: 0.9.6
90
104
  requirement: !ruby/object:Gem::Requirement
91
105
  requirements:
92
106
  - - ~>
93
107
  - !ruby/object:Gem::Version
94
- version: 8.16.0
108
+ version: 0.9.6
95
109
  prerelease: false
96
110
  type: :runtime
97
111
  - !ruby/object:Gem::Dependency
98
- name: xml-mapping
112
+ name: actionpack
99
113
  version_requirements: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ~>
102
116
  - !ruby/object:Gem::Version
103
- version: 0.9.1
117
+ version: 4.1.0
104
118
  requirement: !ruby/object:Gem::Requirement
105
119
  requirements:
106
120
  - - ~>
107
121
  - !ruby/object:Gem::Version
108
- version: 0.9.1
122
+ version: 4.1.0
109
123
  prerelease: false
110
124
  type: :runtime
111
125
  - !ruby/object:Gem::Dependency
112
- name: xml-object
126
+ name: actionview
113
127
  version_requirements: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ~>
116
130
  - !ruby/object:Gem::Version
117
- version: 0.9.93
131
+ version: 4.1.0
118
132
  requirement: !ruby/object:Gem::Requirement
119
133
  requirements:
120
134
  - - ~>
121
135
  - !ruby/object:Gem::Version
122
- version: 0.9.93
136
+ version: 4.1.0
123
137
  prerelease: false
124
138
  type: :runtime
125
139
  - !ruby/object:Gem::Dependency
126
- name: activerecord-jdbcmysql-adapter
140
+ name: activemerchant
127
141
  version_requirements: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - ~>
130
144
  - !ruby/object:Gem::Version
131
- version: 1.2.9
145
+ version: 1.48.0
132
146
  requirement: !ruby/object:Gem::Requirement
133
147
  requirements:
134
148
  - - ~>
135
149
  - !ruby/object:Gem::Version
136
- version: 1.2.9
150
+ version: 1.48.0
137
151
  prerelease: false
138
152
  type: :runtime
139
153
  - !ruby/object:Gem::Dependency
140
- name: jruby-openssl
154
+ name: offsite_payments
141
155
  version_requirements: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - ~>
144
158
  - !ruby/object:Gem::Version
145
- version: 0.9.4
159
+ version: 2.1.0
146
160
  requirement: !ruby/object:Gem::Requirement
147
161
  requirements:
148
162
  - - ~>
149
163
  - !ruby/object:Gem::Version
150
- version: 0.9.4
164
+ version: 2.1.0
165
+ prerelease: false
166
+ type: :runtime
167
+ - !ruby/object:Gem::Dependency
168
+ name: monetize
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 1.1.0
174
+ requirement: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ~>
177
+ - !ruby/object:Gem::Version
178
+ version: 1.1.0
179
+ prerelease: false
180
+ type: :runtime
181
+ - !ruby/object:Gem::Dependency
182
+ name: money
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: 6.5.1
188
+ requirement: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ~>
191
+ - !ruby/object:Gem::Version
192
+ version: 6.5.1
151
193
  prerelease: false
152
194
  type: :runtime
153
195
  - !ruby/object:Gem::Dependency
@@ -156,12 +198,12 @@ dependencies:
156
198
  requirements:
157
199
  - - ~>
158
200
  - !ruby/object:Gem::Version
159
- version: 0.4.1
201
+ version: 0.4.3
160
202
  requirement: !ruby/object:Gem::Requirement
161
203
  requirements:
162
204
  - - ~>
163
205
  - !ruby/object:Gem::Version
164
- version: 0.4.1
206
+ version: 0.4.3
165
207
  prerelease: false
166
208
  type: :development
167
209
  - !ruby/object:Gem::Dependency
@@ -193,17 +235,31 @@ dependencies:
193
235
  prerelease: false
194
236
  type: :development
195
237
  - !ruby/object:Gem::Dependency
196
- name: activerecord-jdbcsqlite3-adapter
238
+ name: jdbc-sqlite3
197
239
  version_requirements: !ruby/object:Gem::Requirement
198
240
  requirements:
199
241
  - - ~>
200
242
  - !ruby/object:Gem::Version
201
- version: 1.2.6
243
+ version: '3.7'
202
244
  requirement: !ruby/object:Gem::Requirement
203
245
  requirements:
204
246
  - - ~>
205
247
  - !ruby/object:Gem::Version
206
- version: 1.2.6
248
+ version: '3.7'
249
+ prerelease: false
250
+ type: :development
251
+ - !ruby/object:Gem::Dependency
252
+ name: jdbc-mariadb
253
+ version_requirements: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ~>
256
+ - !ruby/object:Gem::Version
257
+ version: '1.1'
258
+ requirement: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - ~>
261
+ - !ruby/object:Gem::Version
262
+ version: '1.1'
207
263
  prerelease: false
208
264
  type: :development
209
265
  description: Kill Bill payment plugin for Litle & Co.
@@ -215,7 +271,11 @@ files:
215
271
  - .gitignore
216
272
  - .travis.yml
217
273
  - Gemfile
274
+ - Gemfile.head
275
+ - Gemfile.lock
218
276
  - Jarfile
277
+ - Jarfile.lock
278
+ - LICENSE
219
279
  - NEWS
220
280
  - README.md
221
281
  - Rakefile
@@ -227,27 +287,21 @@ files:
227
287
  - killbill.properties
228
288
  - lib/litle.rb
229
289
  - lib/litle/api.rb
230
- - lib/litle/config/application.rb
231
- - lib/litle/config/configuration.rb
232
- - lib/litle/config/properties.rb
233
- - lib/litle/litle/gateway.rb
290
+ - lib/litle/application.rb
234
291
  - lib/litle/litle_utils.rb
235
- - lib/litle/models/litle_payment_method.rb
236
- - lib/litle/models/litle_response.rb
237
- - lib/litle/models/litle_transaction.rb
292
+ - lib/litle/models/payment_method.rb
293
+ - lib/litle/models/response.rb
294
+ - lib/litle/models/transaction.rb
238
295
  - lib/litle/private_api.rb
239
296
  - lib/litle/views/paypage.erb
240
297
  - litle.yml
241
298
  - pom.xml
242
299
  - release.sh
243
300
  - spec/litle/base_plugin_spec.rb
244
- - spec/litle/currency_conversion_spec.rb
245
- - spec/litle/litle_payment_method_spec.rb
246
- - spec/litle/litle_response_spec.rb
301
+ - spec/litle/remote/certification_spec.rb
247
302
  - spec/litle/remote/integration_spec.rb
248
- - spec/litle/utils_spec.rb
249
303
  - spec/spec_helper.rb
250
- homepage: http://kill-bill.org
304
+ homepage: http://killbill.io
251
305
  licenses:
252
306
  - Apache License (2.0)
253
307
  metadata: {}
@@ -273,11 +327,4 @@ rubygems_version: 2.1.9
273
327
  signing_key:
274
328
  specification_version: 4
275
329
  summary: Plugin to use Litle & Co. as a gateway.
276
- test_files:
277
- - spec/litle/base_plugin_spec.rb
278
- - spec/litle/currency_conversion_spec.rb
279
- - spec/litle/litle_payment_method_spec.rb
280
- - spec/litle/litle_response_spec.rb
281
- - spec/litle/remote/integration_spec.rb
282
- - spec/litle/utils_spec.rb
283
- - spec/spec_helper.rb
330
+ test_files: []