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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 105a2243c1fcc5b1b89fd01661d786c0b7eef8c5cc0effaa82c872a2b34d136c
4
- data.tar.gz: 17bd105f6628735885b95f112cc13c177cb731eb51ef5d030b5d51c342296f80
3
+ metadata.gz: 26a14798c655bfb8d15fa6733c52ceafa97cc7f7e5d4f295f0db38e3d4e6c8fa
4
+ data.tar.gz: 249236ba9cb6483c26069339ec37180e0271d5ffa2a9a69ddf9eb50530a51832
5
5
  SHA512:
6
- metadata.gz: 898e6c1e5f6067ca50debdc93c13c6a8becec96bbd308892fbbc6edc3240db2e76d95c8aeac775e17a19d926df27898af35f6b85088a27010c739f371cfde498
7
- data.tar.gz: f488fe73ef576fd167d3123af36d66ae29c57314853b1a7d5ad02ac37653924f2efa3dd41b4c0d25c8068054cd13b39fae60ed791c36cbd20c24fe7cbb0d4ba2
6
+ metadata.gz: de7163ce5aa7abb24103eeefcb5ee0a075e145705937233822357ddb64230747b6bcf59da4f1e3413d9c69a1fafaaa82a22e9d7f58f34b77c482bd5881f24ac6
7
+ data.tar.gz: db0cc4b9779d11f7f4a7afdfcda91f1af81e5f28c1bf95e06cca9940dbdad2e28cf25c98e5b9146c6ceb28e0217c8bd018284930fc86508d1b6d1de836177280
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module S6kPay
4
- VERSION = "0.3.0"
4
+ VERSION = "0.5.0"
5
5
  end
data/lib/s6kpay.rb CHANGED
@@ -6,10 +6,10 @@ require 'openssl'
6
6
  require 'uri'
7
7
 
8
8
  $Constants = {
9
- HOST: "https://api.zkpay.vn",
10
- HOST_TEST: "https://zkpay-dev.onsky.services",
11
- WEB: "https://zkpay.vn",
12
- WEB_TEST: "https://zk-pay.pages.dev",
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.3.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-07 00:00:00.000000000 Z
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: