s6kpay 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s6kpay/version.rb +1 -1
- data/lib/s6kpay.rb +7 -6
- data/s6kpay-0.1.0.gem +0 -0
- data/s6kpay-0.2.0.gem +0 -0
- data/s6kpay-0.3.0.gem +0 -0
- data/s6kpay-0.4.0.gem +0 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26a14798c655bfb8d15fa6733c52ceafa97cc7f7e5d4f295f0db38e3d4e6c8fa
|
4
|
+
data.tar.gz: 249236ba9cb6483c26069339ec37180e0271d5ffa2a9a69ddf9eb50530a51832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de7163ce5aa7abb24103eeefcb5ee0a075e145705937233822357ddb64230747b6bcf59da4f1e3413d9c69a1fafaaa82a22e9d7f58f34b77c482bd5881f24ac6
|
7
|
+
data.tar.gz: db0cc4b9779d11f7f4a7afdfcda91f1af81e5f28c1bf95e06cca9940dbdad2e28cf25c98e5b9146c6ceb28e0217c8bd018284930fc86508d1b6d1de836177280
|
data/lib/s6kpay/version.rb
CHANGED
data/lib/s6kpay.rb
CHANGED
@@ -6,10 +6,10 @@ require 'openssl'
|
|
6
6
|
require 'uri'
|
7
7
|
|
8
8
|
$Constants = {
|
9
|
-
HOST: "https://api.
|
10
|
-
HOST_TEST: "https://
|
11
|
-
WEB: "https://
|
12
|
-
WEB_TEST: "https://
|
9
|
+
HOST: "https://api.s6kpay.com",
|
10
|
+
HOST_TEST: "https://test-api.s6kpay.com",
|
11
|
+
WEB: "https://s6kpay.com",
|
12
|
+
WEB_TEST: "https://test.s6kpay.com",
|
13
13
|
};
|
14
14
|
|
15
15
|
module S6kPay
|
@@ -42,9 +42,10 @@ module S6kPay
|
|
42
42
|
sorted_params = params.sort.to_h
|
43
43
|
query_str = sorted_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
44
44
|
signed_data = OpenSSL::HMAC.hexdigest("sha256", @options[:secret], query_str)
|
45
|
-
secure_hash == signed_data
|
45
|
+
return secure_hash == signed_data
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
49
|
class Error < StandardError; end
|
50
|
-
end
|
50
|
+
end
|
51
|
+
|
data/s6kpay-0.1.0.gem
ADDED
Binary file
|
data/s6kpay-0.2.0.gem
ADDED
Binary file
|
data/s6kpay-0.3.0.gem
ADDED
Binary file
|
data/s6kpay-0.4.0.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s6kpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- s6kpay
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -84,6 +84,10 @@ files:
|
|
84
84
|
- exe/s6kpay
|
85
85
|
- lib/s6kpay.rb
|
86
86
|
- lib/s6kpay/version.rb
|
87
|
+
- s6kpay-0.1.0.gem
|
88
|
+
- s6kpay-0.2.0.gem
|
89
|
+
- s6kpay-0.3.0.gem
|
90
|
+
- s6kpay-0.4.0.gem
|
87
91
|
- sig/s6kpay.rbs
|
88
92
|
homepage:
|
89
93
|
licenses:
|