juspay_checkout 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da4421e34174efdc95b83aa26e0730b479504d1c17027a6b07d449adc73a9695
4
- data.tar.gz: 80d2d6f944c3c7cfcb2718ad47f252fcae0c202aebe6257f982897aeccaee9c5
3
+ metadata.gz: 27fbb03f4cf0bc3c3ce507b989bd34906c8a4d85544b70f43c6452167de2fb9a
4
+ data.tar.gz: 18f77ad6ab2634178c124a394b5d0f625f5bd3fa4340bacea9dcc3746e295db6
5
5
  SHA512:
6
- metadata.gz: ed9d0642074793b50de091558e774ecdb560c38a574ea33a3439ea0da04c1885f26f628a6f39dcf4dfe52fcfc4419b41703df805d0806df930892954beec20ba
7
- data.tar.gz: 926fbb961942ee0fad36a5199e6b082c61a7c2cbd4095fbbbb9fd8a6d0fef119b6eb98e75084c4e3975c5eb2ef4f0e9b0c70b2aa9f0f0234fe60d6b44335a70e
6
+ metadata.gz: 3ea17a219fc3c6503650ca3c070de2827787ea4e02c60b446e424884af8c8e2a002e3ccfd380f47da5ecc6dd2dc1dcd4f92ba9917b642e94f9a9bce2c4719ee1
7
+ data.tar.gz: 23bb198ee0ea691b0393eeba049ef91eec5e458f81bce32a9630a6ab189cbba9bb45f78c6b0c123b314c4782dd2a9cdccc7030a39dba89031501e4d3aa2bb633
@@ -7,13 +7,12 @@ module JuspayCheckout
7
7
  def is_valid?(params, signature)
8
8
  if params.present?
9
9
  $juspay_config or JuspayCheckout::ExpressCheckout.credential_config
10
- params = params.with_indifferent_access
11
10
  parameter = params.except("signature", "signature_algorithm", "format", "controller", "action")
12
11
  encoded_list = []
13
12
  parameter.keys.sort.each { |k| encoded_list << URI.encode(k) + "=" + URI.encode(params[k]) }
14
13
  data = CGI.escape(encoded_list.join("&"))
15
14
 
16
- hash_string = CGI.escape(Base64.encode64(OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha256'), $juspay_config['response_key'], data)).strip())
15
+ hash_string = Base64.encode64(OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha256'), $juspay_config['response_key'], data)).strip()
17
16
 
18
17
  return signature == hash_string
19
18
  end
@@ -1,3 +1,3 @@
1
1
  module JuspayCheckout
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juspay_checkout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sandipkaranjekar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-18 00:00:00.000000000 Z
11
+ date: 2020-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler