offsite_payments 2.6.0 → 2.6.1

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
  SHA1:
3
- metadata.gz: 73115ca84dcd4112cff7a48a4edf5d3be556c741
4
- data.tar.gz: 5a30a82fdad39b6b31375fffbde56d51990d5713
3
+ metadata.gz: 977c0a47bbf4b3bad338b55b596dfef58a4c53aa
4
+ data.tar.gz: aad5880a06eb50759eee02e7fc3b0b4f573f68a8
5
5
  SHA512:
6
- metadata.gz: bef97be330df21fcd7c37d7a6ebcaa66f7712b773d43913b4ca87e9dfe713ff3bfb0e52da520fb0e57ebc183c4b79c1e0d0ad7f6f4103a934ea7cea2bef7b1e4
7
- data.tar.gz: 274c019786d06ff21eecfa4316cb683e92b8a26296149be08c0fc1296761a1cf86561273f08424d671e395b163828f8b71350d4f3509ae1d3e9e2ce24f4012e6
6
+ metadata.gz: 5a93c305e1371bc1ad53349f5aaea48929fa9757e0011b9b9d3ada62eb631c456e524636a4dedfabb9db4993a4b4d2d39b515c5c19885f263282ed5a3ae95307
7
+ data.tar.gz: cc17d8dbbf89ec9a21bb4e6008b79cf3f6c6340c639b7bc17e057e4d43818139de105963d6f3fbbea213a12e78c1296cf79e3e3c8be946de9b7dda7cf94e090f
@@ -77,9 +77,12 @@ module OffsitePayments #:nodoc:
77
77
  end
78
78
 
79
79
  def encrypt_checksum
80
- payload_items = CHECKSUM_FIELDS.reduce({}) do |items, field|
81
- items[field] = @fields[field]
80
+ payload_items = {}
81
+
82
+ CHECKSUM_FIELDS.each do |field|
83
+ payload_items[field] = @fields[field]
82
84
  end
85
+
83
86
  Paytm.encrypt(Paytm.checksum(payload_items), @options[:credential2])
84
87
  end
85
88
 
@@ -1,3 +1,3 @@
1
1
  module OffsitePayments
2
- VERSION = "2.6.0"
2
+ VERSION = "2.6.1"
3
3
  end
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.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2017-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport