fintecture 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/fintecture.rb +4 -2
- data/lib/fintecture/connect.rb +10 -10
- data/lib/fintecture/utils/crypto.rb +2 -1
- data/lib/fintecture/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc7cb2f525cc68f62282338bd42ea9192cdec355b8cae741af10c23d8a39707a
|
4
|
+
data.tar.gz: 996a01131a38654376f643a27a3320fcfdf6cb54a257ed02e5c6827bb03f993d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81c99f6a60b75faff2d5b3c7d98d75df3078ad66089dcd2b07e81434291f05cc0abf6690bfbc667c61c9d8be5251afa59b8755552af05aa2304a896e3c4cf34d
|
7
|
+
data.tar.gz: 9d166f76394978c2baa9f3b3c187740c2b5449263f21a5b3ddc400b6d327b7c2b989a82e110142cdf6134d8680ca38e566f15daa2a898921ec643162bf2504b8
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/fintecture.rb
CHANGED
@@ -29,7 +29,7 @@ module Fintecture
|
|
29
29
|
@logger = nil
|
30
30
|
@environment = 'sandbox'
|
31
31
|
|
32
|
-
ENVIRONMENTS = %w[sandbox production].freeze
|
32
|
+
ENVIRONMENTS = %w[local sandbox production].freeze
|
33
33
|
|
34
34
|
class << self
|
35
35
|
attr_accessor :app_id, :app_secret, :app_private_key
|
@@ -77,4 +77,6 @@ module Fintecture
|
|
77
77
|
end
|
78
78
|
|
79
79
|
end
|
80
|
-
end
|
80
|
+
end
|
81
|
+
|
82
|
+
Fintecture.log_level = ENV["FINTECTURE_LOG"] unless ENV["FINTECTURE_LOG"].nil?
|
data/lib/fintecture/connect.rb
CHANGED
@@ -78,7 +78,7 @@ module Fintecture
|
|
78
78
|
}
|
79
79
|
|
80
80
|
data = {
|
81
|
-
type: '
|
81
|
+
type: 'PAYMENT',
|
82
82
|
attributes: attributes,
|
83
83
|
}
|
84
84
|
|
@@ -109,15 +109,15 @@ module Fintecture
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def build_local_digest(parameters)
|
112
|
-
test_string =
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
112
|
+
test_string = {
|
113
|
+
app_id: Fintecture.app_id,
|
114
|
+
app_secret: Fintecture.app_secret,
|
115
|
+
session_id: parameters['session_id'],
|
116
|
+
status: parameters['status'],
|
117
|
+
customer_id: parameters['customer_id'],
|
118
|
+
provider: parameters['provider'],
|
119
|
+
state: parameters['state']
|
120
|
+
}.map{|key, value| "#{key}=#{value}"}.join('&')
|
121
121
|
|
122
122
|
Fintecture::Utils::Crypto.hash_base64 test_string
|
123
123
|
end
|
data/lib/fintecture/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fintecture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fintecture
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|