offsite_payments 2.7.7 → 2.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/offsite_payments/integrations/citrus.rb +2 -3
- data/lib/offsite_payments/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dff2d3fe9551065cfcd1d6531c7a04890c37f3c
|
4
|
+
data.tar.gz: 700f1a9607d5d270ac9a25fbfe23fa8b1c5948b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2739877b339aa7d973d4954373770be84a520fbb515a231af2324dcad90402c58bf99e8c6ab717a11cbd7bc4a82ab48cb205e7e5577154cf3923d0a2daf1105
|
7
|
+
data.tar.gz: 487de42a9f3608a557c3ab5b1072b01e29f0532b1f06f3b20a3a54bc6adb4ca6523f69f17be0275340862456ee08f89e3b8cb04da5a8c3b0d77b5385df1f4e10
|
@@ -21,8 +21,6 @@ module OffsitePayments
|
|
21
21
|
class Helper < OffsitePayments::Helper
|
22
22
|
mapping :order, 'merchantTxnId'
|
23
23
|
mapping :amount, 'orderAmount'
|
24
|
-
mapping :account, 'merchantAccessKey'
|
25
|
-
mapping :credential2, 'secret_key'
|
26
24
|
mapping :credential3, 'pmt_url'
|
27
25
|
mapping :currency, 'currency'
|
28
26
|
|
@@ -55,6 +53,7 @@ module OffsitePayments
|
|
55
53
|
super
|
56
54
|
add_field 'paymentMode', 'NET_BANKING'
|
57
55
|
add_field 'reqtime', (Time.now.to_i * 1000).to_s
|
56
|
+
@secret_key = options[:credential2]
|
58
57
|
end
|
59
58
|
|
60
59
|
def form_fields
|
@@ -63,7 +62,7 @@ module OffsitePayments
|
|
63
62
|
|
64
63
|
def generate_checksum
|
65
64
|
checksum_fields = @fields["pmt_url"] + @fields["orderAmount"].to_s + @fields["merchantTxnId"] + @fields["currency"]
|
66
|
-
Citrus.checksum(@
|
65
|
+
Citrus.checksum(@secret_key, checksum_fields )
|
67
66
|
end
|
68
67
|
end
|
69
68
|
|
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.7.
|
4
|
+
version: 2.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Luetke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|