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.
- checksums.yaml +4 -4
- data/.gitignore +4 -5
- data/.travis.yml +22 -3
- data/Gemfile +1 -1
- data/Gemfile.head +5 -0
- data/Gemfile.lock +129 -0
- data/Jarfile +9 -6
- data/Jarfile.lock +58 -0
- data/LICENSE +201 -0
- data/NEWS +3 -0
- data/README.md +58 -98
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/config.ru +1 -1
- data/db/ddl.sql +32 -21
- data/db/schema.rb +44 -32
- data/killbill-litle.gemspec +20 -16
- data/lib/litle.rb +82 -12
- data/lib/litle/api.rb +144 -204
- data/lib/litle/application.rb +96 -0
- data/lib/litle/models/payment_method.rb +21 -0
- data/lib/litle/models/response.rb +44 -0
- data/lib/litle/models/transaction.rb +11 -0
- data/lib/litle/private_api.rb +42 -13
- data/lib/litle/views/paypage.erb +8 -5
- data/litle.yml +33 -11
- data/pom.xml +3 -2
- data/release.sh +41 -21
- data/spec/litle/base_plugin_spec.rb +35 -62
- data/spec/litle/remote/certification_spec.rb +713 -0
- data/spec/litle/remote/integration_spec.rb +97 -168
- data/spec/spec_helper.rb +3 -16
- metadata +102 -55
- data/lib/litle/config/application.rb +0 -66
- data/lib/litle/config/configuration.rb +0 -51
- data/lib/litle/config/properties.rb +0 -23
- data/lib/litle/litle/gateway.rb +0 -32
- data/lib/litle/models/litle_payment_method.rb +0 -167
- data/lib/litle/models/litle_response.rb +0 -199
- data/lib/litle/models/litle_transaction.rb +0 -44
- data/spec/litle/currency_conversion_spec.rb +0 -21
- data/spec/litle/litle_payment_method_spec.rb +0 -95
- data/spec/litle/litle_response_spec.rb +0 -91
- data/spec/litle/utils_spec.rb +0 -22
@@ -2,195 +2,124 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
ActiveMerchant::Billing::Base.mode = :test
|
4
4
|
|
5
|
-
|
6
|
-
attr_accessor :accounts
|
5
|
+
describe Killbill::Litle::PaymentPlugin do
|
7
6
|
|
8
|
-
|
9
|
-
@accounts = []
|
10
|
-
end
|
7
|
+
include ::Killbill::Plugin::ActiveMerchant::RSpec
|
11
8
|
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
17
|
-
@
|
18
|
-
end
|
19
|
-
end
|
14
|
+
@plugin = build_plugin(::Killbill::Litle::PaymentPlugin, 'litle')
|
15
|
+
@plugin.start_plugin
|
20
16
|
|
21
|
-
|
22
|
-
before(:each) do
|
23
|
-
@plugin = Killbill::Litle::PaymentPlugin.new
|
17
|
+
@call_context = build_call_context
|
24
18
|
|
25
|
-
@
|
26
|
-
|
27
|
-
@
|
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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
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
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
#
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
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
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
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
|
-
|
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
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
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
|
-
|
17
|
-
|
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:
|
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:
|
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:
|
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:
|
24
|
+
version: 4.0.0
|
25
25
|
prerelease: false
|
26
26
|
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
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:
|
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:
|
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:
|
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:
|
66
|
+
version: 4.1.0
|
53
67
|
prerelease: false
|
54
68
|
type: :runtime
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
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:
|
75
|
+
version: '0.3'
|
62
76
|
requirement: !ruby/object:Gem::Requirement
|
63
77
|
requirements:
|
64
78
|
- - ~>
|
65
79
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
80
|
+
version: '0.3'
|
67
81
|
prerelease: false
|
68
82
|
type: :runtime
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
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
|
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
|
94
|
+
version: '1.3'
|
81
95
|
prerelease: false
|
82
96
|
type: :runtime
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
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:
|
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:
|
108
|
+
version: 0.9.6
|
95
109
|
prerelease: false
|
96
110
|
type: :runtime
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
112
|
+
name: actionpack
|
99
113
|
version_requirements: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - ~>
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
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:
|
122
|
+
version: 4.1.0
|
109
123
|
prerelease: false
|
110
124
|
type: :runtime
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
126
|
+
name: actionview
|
113
127
|
version_requirements: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - ~>
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
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:
|
136
|
+
version: 4.1.0
|
123
137
|
prerelease: false
|
124
138
|
type: :runtime
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
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.
|
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.
|
150
|
+
version: 1.48.0
|
137
151
|
prerelease: false
|
138
152
|
type: :runtime
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
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:
|
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:
|
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.
|
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.
|
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:
|
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:
|
243
|
+
version: '3.7'
|
202
244
|
requirement: !ruby/object:Gem::Requirement
|
203
245
|
requirements:
|
204
246
|
- - ~>
|
205
247
|
- !ruby/object:Gem::Version
|
206
|
-
version:
|
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/
|
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/
|
236
|
-
- lib/litle/models/
|
237
|
-
- lib/litle/models/
|
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/
|
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://
|
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: []
|