killbill-paypal-express 4.1.0 → 4.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc4531efe4c6f7825ed1d9a3dd3fd2b8e9f2ccb6
4
- data.tar.gz: 1a3dab60dedf1ca4f9c8e17beb1f3be748cc71f9
3
+ metadata.gz: 58c47311e18ec40687c9e85d8f2e5b5c3072a254
4
+ data.tar.gz: 756b5fbee2637f0ae22f02e323570af951af1b5f
5
5
  SHA512:
6
- metadata.gz: adb0c1956db0e87054266415ae29824e70f88d442769fc6b7c30c8e6a037b570f4fa51c0fad29db8bdcb346fd5b1f17dc8541d6a2aa5c7b8184c5f665ca1b469
7
- data.tar.gz: 4d77f05cc11ade49b059c96ecd0479eccc5c36d26d9b93113fe0935a1639e9ce95b6805e0ede6bafc443cbed73dcac1a3144c3fb2dda4b974eb0ae15c9ce0288
6
+ metadata.gz: b6a0cab124d70c4beadd4606ee237ac5b3c338282a3fa8c34e505fa79b4baebe766783a43b007d073240c0aaf549984c0b71ceeb30eae72ee97782eb60147def
7
+ data.tar.gz: 8a10a1ef31c4a12953b68b9d91931654fc2eab6ace28e472562bc56c54423fa2ed0c7ff436843ca088c8396b663d6ecf9b4ee15f64029b676b2022265bc726c4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-paypal-express (4.1.0)
4
+ killbill-paypal-express (4.1.1)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.53.0)
@@ -19,13 +19,13 @@ PATH
19
19
  GEM
20
20
  remote: https://rubygems.org/
21
21
  specs:
22
- actionpack (4.1.14.1)
23
- actionview (= 4.1.14.1)
24
- activesupport (= 4.1.14.1)
22
+ actionpack (4.1.15)
23
+ actionview (= 4.1.15)
24
+ activesupport (= 4.1.15)
25
25
  rack (~> 1.5.2)
26
26
  rack-test (~> 0.6.2)
27
- actionview (4.1.14.1)
28
- activesupport (= 4.1.14.1)
27
+ actionview (4.1.15)
28
+ activesupport (= 4.1.15)
29
29
  builder (~> 3.1)
30
30
  erubis (~> 2.7.0)
31
31
  active_utils (3.0.0)
@@ -36,17 +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.14.1)
40
- activesupport (= 4.1.14.1)
39
+ activemodel (4.1.15)
40
+ activesupport (= 4.1.15)
41
41
  builder (~> 3.1)
42
- activerecord (4.1.14.1)
43
- activemodel (= 4.1.14.1)
44
- activesupport (= 4.1.14.1)
42
+ activerecord (4.1.15)
43
+ activemodel (= 4.1.15)
44
+ activesupport (= 4.1.15)
45
45
  arel (~> 5.0.0)
46
46
  activerecord-bogacs (0.4.1)
47
- activerecord-jdbc-adapter (1.3.19)
47
+ activerecord-jdbc-adapter (1.3.20)
48
48
  activerecord (>= 2.2)
49
- activesupport (4.1.14.1)
49
+ activesupport (4.1.15)
50
50
  i18n (~> 0.6, >= 0.6.9)
51
51
  json (~> 1.7, >= 1.7.7)
52
52
  minitest (~> 5.1)
@@ -67,7 +67,6 @@ GEM
67
67
  erubis (2.7.0)
68
68
  ethon (0.8.1)
69
69
  ffi (>= 1.3.0)
70
- ffi (1.9.10)
71
70
  ffi (1.9.10-java)
72
71
  i18n (0.7.0)
73
72
  ice_nine (0.11.1)
@@ -80,24 +79,20 @@ GEM
80
79
  jdbc-mariadb (1.2.3)
81
80
  jdbc-postgres (9.4.1206)
82
81
  jdbc-sqlite3 (3.8.11.2)
83
- jruby-openssl (0.9.15-java)
84
- json (1.8.3)
82
+ jruby-openssl (0.9.16-java)
85
83
  json (1.8.3-java)
86
- killbill (7.0.2)
84
+ killbill (7.0.3)
87
85
  rack (>= 1.5.2)
88
86
  sinatra (~> 1.3.4)
89
87
  typhoeus (~> 0.6.9)
90
88
  tzinfo (~> 1.2.0)
91
89
  maven-tools (1.0.13)
92
90
  virtus (~> 1.0)
93
- mini_portile2 (2.0.0)
94
91
  minitest (5.8.4)
95
92
  monetize (1.1.0)
96
93
  money (~> 6.5.0)
97
94
  money (6.5.1)
98
95
  i18n (>= 0.6.4, <= 0.7.0)
99
- nokogiri (1.6.7.2)
100
- mini_portile2 (~> 2.0.0.rc2)
101
96
  nokogiri (1.6.7.2-java)
102
97
  offsite_payments (2.1.0)
103
98
  actionpack (>= 3.2.20, < 5.0.0)
@@ -128,7 +123,6 @@ GEM
128
123
  rack (~> 1.4)
129
124
  rack-protection (~> 1.3)
130
125
  tilt (~> 1.3, >= 1.3.3)
131
- thread_safe (0.3.5)
132
126
  thread_safe (0.3.5-java)
133
127
  tilt (1.4.1)
134
128
  typhoeus (0.6.9)
@@ -143,7 +137,6 @@ GEM
143
137
 
144
138
  PLATFORMS
145
139
  java
146
- ruby
147
140
 
148
141
  DEPENDENCIES
149
142
  jbundler (~> 0.9.2)
@@ -155,4 +148,4 @@ DEPENDENCIES
155
148
  rspec (~> 2.12.0)
156
149
 
157
150
  BUNDLED WITH
158
- 1.10.6
151
+ 1.11.2
data/NEWS CHANGED
@@ -1,3 +1,7 @@
1
+ 4.1.1
2
+ Add support for max_amount parameter
3
+ Update message column in paypal_express_reponses to text
4
+
1
5
  4.1.0
2
6
  Initial support for HPP flows (one-off payments)
3
7
 
data/README.md CHANGED
@@ -217,3 +217,4 @@ Plugin properties
217
217
  | zip | Billing address zip code |
218
218
  | state | Billing address state |
219
219
  | country | Billing address country |
220
+ | max_amount | Maximum amount parameter (optional) for SetExpressCheckout call |
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.1.0
1
+ 4.1.1
data/db/ddl.sql CHANGED
@@ -58,7 +58,7 @@ CREATE TABLE `paypal_express_responses` (
58
58
  `kb_payment_transaction_id` varchar(255) DEFAULT NULL,
59
59
  `transaction_type` varchar(255) DEFAULT NULL,
60
60
  `payment_processor_account_id` varchar(255) DEFAULT NULL,
61
- `message` varchar(255) DEFAULT NULL,
61
+ `message` text DEFAULT NULL,
62
62
  `authorization` varchar(255) DEFAULT NULL,
63
63
  `fraud_review` tinyint(1) DEFAULT NULL,
64
64
  `test` tinyint(1) DEFAULT NULL,
@@ -0,0 +1,11 @@
1
+ class EnlargeMessage < ActiveRecord::Migration
2
+
3
+ def change
4
+ reversible do |dir|
5
+ change_table :paypal_express_responses do |t|
6
+ dir.up { t.change :message, :text }
7
+ dir.down { t.change :message, :string }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -59,7 +59,7 @@ ActiveRecord::Schema.define(:version => 20151008153635) do
59
59
  t.string "kb_payment_transaction_id"
60
60
  t.string "transaction_type"
61
61
  t.string "payment_processor_account_id"
62
- t.string "message"
62
+ t.text "message"
63
63
  t.string "authorization"
64
64
  t.boolean "fraud_review"
65
65
  t.boolean "test"
@@ -353,6 +353,12 @@ module Killbill #:nodoc:
353
353
  options[:return_url] = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, :return_url)
354
354
  options[:cancel_return_url] = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, :cancel_return_url)
355
355
 
356
+ max_amount_value = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, :max_amount)
357
+ if max_amount_value
358
+ max_amount_in_cents = to_cents((max_amount_value || '0').to_f, currency)
359
+ options[:max_amount] = max_amount_in_cents
360
+ end
361
+
356
362
  amount_in_cents = amount.nil? ? nil : to_cents(amount, currency)
357
363
  response = @private_api.initiate_express_checkout(kb_account_id,
358
364
  context.tenant_id.to_s,
data/pom.xml CHANGED
@@ -26,7 +26,7 @@
26
26
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
27
27
  <artifactId>paypal-express-plugin</artifactId>
28
28
  <packaging>pom</packaging>
29
- <version>4.1.0</version>
29
+ <version>4.1.1</version>
30
30
  <name>paypal-express-plugin</name>
31
31
  <url>http://github.com/killbill/killbill-paypal-express-plugin</url>
32
32
  <description>Plugin for accessing Paypal Express Checkout as a payment gateway</description>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-paypal-express
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-25 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill
@@ -302,6 +302,7 @@ files:
302
302
  - VERSION
303
303
  - config.ru
304
304
  - db/ddl.sql
305
+ - db/migrate/20160828090851_enlarge_message.rb
305
306
  - db/schema.rb
306
307
  - killbill-paypal-express.gemspec
307
308
  - killbill.properties
@@ -343,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
343
344
  version: '0'
344
345
  requirements: []
345
346
  rubyforge_project:
346
- rubygems_version: 2.1.9
347
+ rubygems_version: 2.4.6
347
348
  signing_key:
348
349
  specification_version: 4
349
350
  summary: Plugin to use Paypal Express Checkout as a gateway.