offsite_payments 2.6.6 → 2.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/offsite_payments/integrations/mollie.rb +7 -4
- data/lib/offsite_payments/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f64388719134b6c2477e56fb133586e0577273b
|
4
|
+
data.tar.gz: aef7c9494eda15a44f60b374f00f2e30f8a86eb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95e09168c57ff3c7bbc7b5e8b87d32afb740b0a887be1785bb0a8aa46ae1e61593626e7ca4257332260194cb820698ee63b9bb13ab61199bd2d56dd9587693e8
|
7
|
+
data.tar.gz: d1efd82ca2f60e45e27e64c9b3b72a48f01be8a654da97d12c1eb871328108836a63bffa91ac65b50d436170340253800991274fe14dbd987d9698dd9f179bf5
|
@@ -2,6 +2,7 @@ module OffsitePayments #:nodoc:
|
|
2
2
|
module Integrations #:nodoc:
|
3
3
|
module Mollie
|
4
4
|
class API
|
5
|
+
include ActiveUtils::NetworkConnectionRetries
|
5
6
|
include ActiveUtils::PostsData
|
6
7
|
|
7
8
|
attr_reader :token
|
@@ -13,10 +14,12 @@ module OffsitePayments #:nodoc:
|
|
13
14
|
end
|
14
15
|
|
15
16
|
def get_request(resource, params = nil)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
retry_exceptions({retry_safe: true}) do
|
18
|
+
uri = URI.parse(MOLLIE_API_V1_URI + resource)
|
19
|
+
uri.query = params.map { |k,v| "#{CGI.escape(k)}=#{CGI.escape(v)}"}.join('&') if params
|
20
|
+
headers = { "Authorization" => "Bearer #{token}", "Content-Type" => "application/json" }
|
21
|
+
JSON.parse(ssl_get(uri.to_s, headers))
|
22
|
+
end
|
20
23
|
end
|
21
24
|
|
22
25
|
def post_request(resource, params = nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: offsite_payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Luetke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|