workarea-paypal 3.0.1 → 3.0.2

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
  SHA256:
3
- metadata.gz: ec2de3863ee37303126a6f3b58f9e0e0e0081f983fcc7436eeef937b8429115d
4
- data.tar.gz: 976987d8fb51788da045850771b4b7c76ee9dbe2b6d7c781dc4e9874e1dde8cf
3
+ metadata.gz: 4d0ce77786a2ad96d5214c78579c0cdbc5b43244cf601f804ce7816d79ff7b26
4
+ data.tar.gz: 541c17558e7d370bba35069c36e94c5b2b117ec8272f4166d13de28f32832881
5
5
  SHA512:
6
- metadata.gz: 3d92e73fd62a729f1a0bc9d94798f181f266958cf6bd03cf05ed753650edf7cf00d12b054d0aa219bd361c57be979f116a0b605c48d9fcb857776a39c4450bde
7
- data.tar.gz: 82ed3baaf020fbaded7337706681b204bff951827f13180ccb8d91a13c5df1bed0d08ddcda4b44858bcade41ecf9ea7c6cdfd60575cef110d148255532d8e44d
6
+ metadata.gz: bacf6162780b95520e23ac0de9e09fb2e85415c689af9b8d4695b8f96159de868d155371a52436804238fea7ac874971ca5a1e43020dca37d8ede749eda3c8dc
7
+ data.tar.gz: 3d63100bfb1a3a49608a65cb2804148cf4868c39e9d13106a73268e52874adc1d04e66ded3813a62da4bd754d1c0d5bb3e882a63c60a046fe6b7e0bd02db956b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ Workarea Paypal 3.0.2 (2020-05-14)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Fix wrong protocol when using SSL
5
+
6
+ Fixes #11
7
+
8
+ Ben Crouse
9
+
10
+ * Fix field name on #refund
11
+
12
+
13
+ Alejandro Babio
14
+
15
+
16
+
1
17
  Workarea Paypal 3.0.1 (2020-03-17)
2
18
  --------------------------------------------------------------------------------
3
19
 
@@ -17,7 +17,8 @@ namespace :workarea do
17
17
  puts 'Subscribing to PayPal webhook events...'
18
18
  Workarea::Paypal.gateway.create_webhook(
19
19
  url: Workarea::Storefront::Engine.routes.url_helpers.paypal_event_url(
20
- host: Workarea.config.host
20
+ host: Workarea.config.host,
21
+ protocol: Rails.application.config.force_ssl ? 'https' : 'http'
21
22
  ),
22
23
  event_types: Workarea.config.default_webhook_events
23
24
  )
@@ -90,7 +90,7 @@ module Workarea
90
90
  request.request_body(
91
91
  amount: {
92
92
  value: amount.to_s,
93
- currency: amount.currency.iso_code
93
+ currency_code: amount.currency.iso_code
94
94
  }
95
95
  )
96
96
  end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Paypal
3
- VERSION = '3.0.1'.freeze
3
+ VERSION = '3.0.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-paypal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bcrouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-17 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
220
  requirements: []
221
- rubygems_version: 3.0.6
221
+ rubygems_version: 3.0.3
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: PayPal integration for the Workarea Commerce Platform