killbill-litle 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS DELETED
@@ -1,78 +0,0 @@
1
- 4.0.0
2
- Initial release for Kill Bill 0.18.x
3
-
4
- 3.0.0
5
- Initial release for Kill Bill 0.16.x
6
-
7
- 2.0.0
8
- Initial release for Kill Bill 0.14.x
9
-
10
- 1.10.0
11
- Update to latest killbill
12
- Change groupId to org.kill-bill.billing.plugin.ruby
13
-
14
- 1.9.9
15
- Add jruby-openssl dependency
16
-
17
- 1.9.8
18
- Fix packaging
19
-
20
- 1.9.7
21
- Implement payments and refunds search
22
- Fix amount to cents conversion
23
- Update to latest killbill (2.0.0)
24
-
25
- 1.9.6
26
- Update to latest killbill (1.9.0)
27
-
28
- 1.9.5
29
- Bug fixes for currency transaformation
30
-
31
- 1.9.4
32
- Fix bugs in payment/refunds introduced during currency conversion
33
-
34
- 1.9.3
35
- Currency conversion bug fixes
36
-
37
- 1.9.2
38
- Add ability currency conversion for payment/refunds
39
-
40
- 1.9.1
41
- Search implementation bugfix
42
-
43
- 1.9.0
44
- Update to latest killbill (1.7.1)
45
- Add pagination support for search
46
- Improve search algorithm
47
-
48
- 1.8.2
49
- Populate customer id for payments (see killbill/killbill-litle-plugin#1)
50
-
51
- 1.8.1
52
- Fix first_reference_id to support AmEx transactions (see killbill/killbill-analytics-plugin#10)
53
-
54
- 1.8.0
55
- Update to latest killbill 1.6.0 (new entitlement Apis)
56
-
57
- 1.7.1
58
- Update to active_merchant 1.36.0 (no need for custom build anymore)
59
-
60
- 1.7.0
61
- Update to latest killbill (1.4.0)
62
-
63
- 1.6.0
64
- Update to latest killbill (1.3.0)
65
-
66
- 1.5.1
67
- Re-publish released artifact using gnutar instead of bsdtar
68
-
69
- 1.5.0
70
- Add additional properties in PaymentMethodPlugin
71
- Implement search
72
- Fix process_payment implementation (pass expiration date to Litle)
73
-
74
- 1.4.0
75
- Update to killbill 1.2.0
76
-
77
- 1.3.0
78
- Update to killbill 1.1.2
data/README.md DELETED
@@ -1,87 +0,0 @@
1
- killbill-litle-plugin
2
- =====================
3
-
4
- Plugin to use [Litle & Co.](https://www.litle.com/) as a gateway.
5
-
6
- Release builds are available on [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.kill-bill.billing.plugin.ruby%22%20AND%20a%3A%22litle-plugin%22) with coordinates `org.kill-bill.billing.plugin.ruby:litle-plugin`.
7
-
8
- Kill Bill compatibility
9
- -----------------------
10
-
11
- | Plugin version | Kill Bill version |
12
- | -------------: | ----------------: |
13
- | 2.x.y | 0.14.z |
14
- | 3.x.y | 0.16.z |
15
- | 4.x.y | 0.18.z |
16
-
17
- Requirements
18
- ------------
19
-
20
- The plugin needs a database. The latest version of the schema can be found [here](https://github.com/killbill/killbill-litle-plugin/blob/master/db/ddl.sql).
21
-
22
- Configuration
23
- -------------
24
-
25
- ```
26
- curl -v \
27
- -X POST \
28
- -u admin:password \
29
- -H 'X-Killbill-ApiKey: bob' \
30
- -H 'X-Killbill-ApiSecret: lazar' \
31
- -H 'X-Killbill-CreatedBy: admin' \
32
- -H 'Content-Type: text/plain' \
33
- -d ':litle:
34
- - :account_id: USD
35
- :merchant_id: "your-merchant-id-USD"
36
- :username: "your-username"
37
- :password: "your-password"
38
- :secure_page_url: "litle-secure-page-url"
39
- :paypage_id: "your-paypage-id-USD"
40
- - :account_id: EUR
41
- :merchant_id: "your-merchant-id-EUR"
42
- :username: "your-username"
43
- :password: "your-password"
44
- :secure_page_url: "litle-secure-page-url"
45
- :paypage_id: "your-paypage-id-EUR"' \
46
- http://127.0.0.1:8080/1.0/kb/tenants/uploadPluginConfig/killbill-litle
47
- ```
48
-
49
- To go to production, create a `litle.yml` configuration file under `/var/tmp/bundles/plugins/ruby/killbill-litle/x.y.z/` containing the following:
50
-
51
- ```
52
- :litle:
53
- :test: false
54
- ```
55
-
56
- Usage
57
- -----
58
-
59
- You would typically implement [Litle PayPage](https://www.litle.com/images/uploads/Paypage.pdf) to tokenize credit cards.
60
-
61
- After receiving the token from Litle, call:
62
-
63
- ```
64
- curl -v \
65
- -X POST \
66
- -u admin:password \
67
- -H 'X-Killbill-ApiKey: bob' \
68
- -H 'X-Killbill-ApiSecret: lazar' \
69
- -H 'X-Killbill-CreatedBy: admin' \
70
- -H 'Content-Type: application/json' \
71
- -d '{
72
- "pluginName": "killbill-litle",
73
- "pluginInfo": {
74
- "properties": [{
75
- "key": "paypageRegistrationId",
76
- "value": "t3GER3BP3JHLASZe"
77
- }]
78
- }
79
- }' \
80
- "http://127.0.0.1:8080/1.0/kb/accounts/2a55045a-ce1d-4344-942d-b825536328f9/paymentMethods?isDefault=true"
81
- ```
82
-
83
- An example implementation is exposed at:
84
-
85
- ```
86
- http://127.0.0.1:8080/plugins/killbill-litle/form?kb_account_id=2a55045a-ce1d-4344-942d-b825536328f9&kb_tenant_id=a86d9fd1-718d-4178-a9eb-46c61aa2548f
87
- ```
data/Rakefile DELETED
@@ -1,30 +0,0 @@
1
- #!/usr/bin/env rake
2
-
3
- # Install tasks to build and release the plugin
4
- require 'bundler/setup'
5
- Bundler::GemHelper.install_tasks
6
-
7
- # Install test tasks
8
- require 'rspec/core/rake_task'
9
- namespace :test do
10
- desc 'Run RSpec tests'
11
- RSpec::Core::RakeTask.new do |task|
12
- task.name = 'spec'
13
- task.pattern = './spec/*/*_spec.rb'
14
- end
15
-
16
- namespace :remote do
17
- desc 'Run RSpec remote tests'
18
- RSpec::Core::RakeTask.new do |task|
19
- task.name = 'spec'
20
- task.pattern = './spec/*/remote/*_spec.rb'
21
- end
22
- end
23
- end
24
-
25
- # Install tasks to package the plugin for Killbill
26
- require 'killbill/rake_task'
27
- Killbill::PluginHelper.install_tasks
28
-
29
- # Run tests by default
30
- task :default => 'test:spec'
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 4.0.0
data/config.ru DELETED
@@ -1,4 +0,0 @@
1
- require 'litle'
2
- require 'litle/application'
3
-
4
- run Sinatra::Application
data/db/ddl.sql DELETED
@@ -1,82 +0,0 @@
1
- CREATE TABLE `litle_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
- `cc_first_name` varchar(255) DEFAULT NULL,
6
- `cc_last_name` varchar(255) DEFAULT NULL,
7
- `cc_type` varchar(255) DEFAULT NULL,
8
- `cc_exp_month` varchar(255) DEFAULT NULL,
9
- `cc_exp_year` varchar(255) DEFAULT NULL,
10
- `cc_number` varchar(255) DEFAULT NULL,
11
- `cc_last_4` varchar(255) DEFAULT NULL,
12
- `cc_start_month` varchar(255) DEFAULT NULL,
13
- `cc_start_year` varchar(255) DEFAULT NULL,
14
- `cc_issue_number` varchar(255) DEFAULT NULL,
15
- `cc_verification_value` varchar(255) DEFAULT NULL,
16
- `cc_track_data` varchar(255) DEFAULT NULL,
17
- `address1` varchar(255) DEFAULT NULL,
18
- `address2` varchar(255) DEFAULT NULL,
19
- `city` varchar(255) DEFAULT NULL,
20
- `state` varchar(255) DEFAULT NULL,
21
- `zip` varchar(255) DEFAULT NULL,
22
- `country` varchar(255) DEFAULT NULL,
23
- `is_deleted` tinyint(1) NOT NULL DEFAULT '0',
24
- `created_at` datetime NOT NULL,
25
- `updated_at` datetime NOT NULL,
26
- `kb_account_id` varchar(255) DEFAULT NULL,
27
- `kb_tenant_id` varchar(255) DEFAULT NULL,
28
- PRIMARY KEY (`id`),
29
- KEY `index_litle_payment_methods_on_kb_account_id` (`kb_account_id`),
30
- KEY `index_litle_payment_methods_on_kb_payment_method_id` (`kb_payment_method_id`)
31
- ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
32
-
33
- CREATE TABLE `litle_transactions` (
34
- `id` int(11) NOT NULL AUTO_INCREMENT,
35
- `litle_response_id` int(11) NOT NULL,
36
- `api_call` varchar(255) NOT NULL,
37
- `kb_payment_id` varchar(255) NOT NULL,
38
- `kb_payment_transaction_id` varchar(255) NOT NULL,
39
- `transaction_type` varchar(255) NOT NULL,
40
- `payment_processor_account_id` varchar(255) DEFAULT NULL,
41
- `txn_id` varchar(255) DEFAULT NULL,
42
- `amount_in_cents` int(11) DEFAULT NULL,
43
- `currency` varchar(255) DEFAULT NULL,
44
- `created_at` datetime NOT NULL,
45
- `updated_at` datetime NOT NULL,
46
- `kb_account_id` varchar(255) NOT NULL,
47
- `kb_tenant_id` varchar(255) NOT NULL,
48
- PRIMARY KEY (`id`),
49
- KEY `index_litle_transactions_on_kb_payment_id` (`kb_payment_id`)
50
- ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
51
-
52
- CREATE TABLE `litle_responses` (
53
- `id` int(11) NOT NULL AUTO_INCREMENT,
54
- `api_call` varchar(255) NOT NULL,
55
- `kb_payment_id` varchar(255) DEFAULT NULL,
56
- `kb_payment_transaction_id` varchar(255) DEFAULT NULL,
57
- `transaction_type` varchar(255) DEFAULT NULL,
58
- `payment_processor_account_id` varchar(255) DEFAULT NULL,
59
- `message` varchar(255) DEFAULT NULL,
60
- `authorization` varchar(255) DEFAULT NULL,
61
- `fraud_review` tinyint(1) DEFAULT NULL,
62
- `test` tinyint(1) DEFAULT NULL,
63
- `params_litle_txn_id` varchar(255) DEFAULT NULL,
64
- `params_order_id` varchar(255) DEFAULT NULL,
65
- `params_litle_token` varchar(255) DEFAULT NULL,
66
- `params_auth_code` varchar(255) DEFAULT NULL,
67
- `params_response` varchar(255) DEFAULT NULL,
68
- `params_response_time` varchar(255) DEFAULT NULL,
69
- `params_message` varchar(255) DEFAULT NULL,
70
- `avs_result_code` varchar(255) DEFAULT NULL,
71
- `avs_result_message` varchar(255) DEFAULT NULL,
72
- `avs_result_street_match` varchar(255) DEFAULT NULL,
73
- `avs_result_postal_match` varchar(255) DEFAULT NULL,
74
- `cvv_result_code` varchar(255) DEFAULT NULL,
75
- `cvv_result_message` varchar(255) DEFAULT NULL,
76
- `success` tinyint(1) DEFAULT NULL,
77
- `created_at` datetime NOT NULL,
78
- `updated_at` datetime NOT NULL,
79
- `kb_account_id` varchar(255) DEFAULT NULL,
80
- `kb_tenant_id` varchar(255) DEFAULT NULL,
81
- PRIMARY KEY (`id`)
82
- ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
data/db/schema.rb DELETED
@@ -1,83 +0,0 @@
1
- require 'active_record'
2
-
3
- ActiveRecord::Schema.define(:version => 20140410153635) do
4
- create_table "litle_payment_methods", :force => true do |t|
5
- t.string "kb_payment_method_id" # NULL before Kill Bill knows about it
6
- t.string "token" # litle id
7
- t.string "cc_first_name"
8
- t.string "cc_last_name"
9
- t.string "cc_type"
10
- t.string "cc_exp_month"
11
- t.string "cc_exp_year"
12
- t.string "cc_number"
13
- t.string "cc_last_4"
14
- t.string "cc_start_month"
15
- t.string "cc_start_year"
16
- t.string "cc_issue_number"
17
- t.string "cc_verification_value"
18
- t.string "cc_track_data"
19
- t.string "address1"
20
- t.string "address2"
21
- t.string "city"
22
- t.string "state"
23
- t.string "zip"
24
- t.string "country"
25
- t.boolean "is_deleted", :null => false, :default => false
26
- t.datetime "created_at", :null => false
27
- t.datetime "updated_at", :null => false
28
- t.string "kb_account_id"
29
- t.string "kb_tenant_id"
30
- end
31
-
32
- add_index(:litle_payment_methods, :kb_account_id)
33
- add_index(:litle_payment_methods, :kb_payment_method_id)
34
-
35
- create_table "litle_transactions", :force => true do |t|
36
- t.integer "litle_response_id", :null => false
37
- t.string "api_call", :null => false
38
- t.string "kb_payment_id", :null => false
39
- t.string "kb_payment_transaction_id", :null => false
40
- t.string "transaction_type", :null => false
41
- t.string "payment_processor_account_id"
42
- t.string "txn_id" # litle transaction id
43
- # Both null for void
44
- t.integer "amount_in_cents"
45
- t.string "currency"
46
- t.datetime "created_at", :null => false
47
- t.datetime "updated_at", :null => false
48
- t.string "kb_account_id", :null => false
49
- t.string "kb_tenant_id", :null => false
50
- end
51
-
52
- add_index(:litle_transactions, :kb_payment_id)
53
-
54
- create_table "litle_responses", :force => true do |t|
55
- t.string "api_call", :null => false
56
- t.string "kb_payment_id"
57
- t.string "kb_payment_transaction_id"
58
- t.string "transaction_type"
59
- t.string "payment_processor_account_id"
60
- t.string "message"
61
- t.string "authorization"
62
- t.boolean "fraud_review"
63
- t.boolean "test"
64
- t.string "params_litle_txn_id"
65
- t.string "params_order_id"
66
- t.string "params_litle_token"
67
- t.string "params_auth_code"
68
- t.string "params_response"
69
- t.string "params_response_time"
70
- t.string "params_message"
71
- t.string "avs_result_code"
72
- t.string "avs_result_message"
73
- t.string "avs_result_street_match"
74
- t.string "avs_result_postal_match"
75
- t.string "cvv_result_code"
76
- t.string "cvv_result_message"
77
- t.boolean "success"
78
- t.datetime "created_at", :null => false
79
- t.datetime "updated_at", :null => false
80
- t.string "kb_account_id"
81
- t.string "kb_tenant_id"
82
- end
83
- end
@@ -1,53 +0,0 @@
1
- version = File.read(File.expand_path('../VERSION', __FILE__)).strip
2
-
3
- Gem::Specification.new do |s|
4
- s.name = 'killbill-litle'
5
- s.version = version
6
- s.summary = 'Plugin to use Litle & Co. as a gateway.'
7
- s.description = 'Kill Bill payment plugin for Litle & Co.'
8
-
9
- s.required_ruby_version = '>= 1.9.3'
10
-
11
- s.license = 'Apache License (2.0)'
12
-
13
- s.author = 'Kill Bill core team'
14
- s.email = 'killbilling-users@googlegroups.com'
15
- s.homepage = 'http://killbill.io'
16
-
17
- s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
- s.bindir = 'bin'
20
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
21
- s.require_paths = ['lib']
22
-
23
- s.rdoc_options << '--exclude' << '.'
24
-
25
- s.add_dependency 'killbill', '~> 8.0'
26
-
27
- s.add_dependency 'sinatra', '~> 1.3.4'
28
- s.add_dependency 'thread_safe', '~> 0.3.4'
29
- s.add_dependency 'activerecord', '~> 4.1.0'
30
- if defined?(JRUBY_VERSION)
31
- s.add_dependency 'activerecord-bogacs', '~> 0.3'
32
- s.add_dependency 'activerecord-jdbc-adapter', '~> 1.3', '< 1.5'
33
- s.add_dependency 'jruby-openssl', '~> 0.9.7'
34
- end
35
- s.add_dependency 'actionpack', '~> 4.1.0'
36
- s.add_dependency 'actionview', '~> 4.1.0'
37
- # 1.56.0 and above requires Ruby 2.0
38
- s.add_dependency 'activemerchant', '~> 1.55.0'
39
- s.add_dependency 'offsite_payments', '~> 2.1.0'
40
- s.add_dependency 'monetize', '~> 1.1.0'
41
- s.add_dependency 'money', '~> 6.5.1'
42
-
43
- s.add_development_dependency 'jbundler', '~> 0.9.2'
44
- s.add_development_dependency 'rake', '>= 10.0.0'
45
- s.add_development_dependency 'rspec', '~> 2.12.0'
46
- if defined?(JRUBY_VERSION)
47
- s.add_development_dependency 'jdbc-sqlite3', '~> 3.7'
48
- s.add_development_dependency 'jdbc-mariadb', '~> 1.1'
49
- s.add_development_dependency 'jdbc-postgres', '~> 9.4'
50
- else
51
- s.add_development_dependency 'sqlite3', '~> 1.3.7'
52
- end
53
- end
data/killbill.properties DELETED
@@ -1,3 +0,0 @@
1
- mainClass=Killbill::Litle::PaymentPlugin
2
- require=litle
3
- pluginType=PAYMENT
data/litle.yml DELETED
@@ -1,38 +0,0 @@
1
- :litle:
2
- - :account_id: "USD"
3
- :merchant_id: "your-merchant-id-USD"
4
- :username: "your-username"
5
- :password: "your-password"
6
- :secure_page_url: "https://request-prelive.np-securepaypage-litle.com"
7
- :paypage_id: "litle-paypage-id-USD"
8
- - :account_id: "EUR"
9
- :merchant_id: "your-merchant-id-EUR"
10
- :username: "your-username"
11
- :password: "your-password"
12
- :secure_page_url: "https://request-prelive.np-securepaypage-litle.com"
13
- :paypage_id: "litle-paypage-id-EUR"
14
-
15
- :database:
16
- # SQLite (development)
17
- :adapter: sqlite3
18
- :database: test.db
19
- # For MySQL
20
- # :adapter: mysql
21
- # :username: 'killbill'
22
- # :password: 'killbill'
23
- # :database: 'killbill' # or set the URL :
24
- # #:url: jdbc:mysql://127.0.0.1:3306/killbill
25
- # :driver: org.mariadb.jdbc.Driver # as in KB
26
- # :pool: 30 # AR's default is max 5 connections
27
- # In Kill Bill
28
- # :adapter: mysql
29
- # :jndi: 'killbill/osgi/jdbc'
30
- # :pool: false # false-pool (JNDI pool's max)
31
- # # uncomment if pool does not support JDBC4 :
32
- # #:connection_alive_sql: 'select 1'
33
- # # MySQL adapter #configure_connection defaults :
34
- # # @@SESSION.sql_auto_is_null = 0,
35
- # # @@SESSION.wait_timeout = 2147483,
36
- # # @@SESSION.sql_mode = 'STRICT_ALL_TABLES'
37
- # # ... can be disabled (on AR-JDBC 1.4) using :
38
- # :configure_connection: false