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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d06da7e979e4552709ffe22f3d1f3ea86665f7e
4
- data.tar.gz: 86aff11e7884ee718679ce050e7aad54a16e440e
3
+ metadata.gz: 0dff2d3fe9551065cfcd1d6531c7a04890c37f3c
4
+ data.tar.gz: 700f1a9607d5d270ac9a25fbfe23fa8b1c5948b7
5
5
  SHA512:
6
- metadata.gz: 3506373a22fc9551669dd375c2a26a838a91ecd2e0b2c919aa02639a320fecd7c6fafb695f5e5079464ea975d846da28950dd326e2b1c8c3017abd52cac05812
7
- data.tar.gz: 7f7e3cb6abb565c36d1a9361fb39cc89ee7a24b3debfc09bc1f5d39e0f33552def27a2aaf5bc4537a37066edbc24ec8bc0e73aa120032d36a31662f932d8c246
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(@fields["secret_key"], checksum_fields )
65
+ Citrus.checksum(@secret_key, checksum_fields )
67
66
  end
68
67
  end
69
68
 
@@ -1,3 +1,3 @@
1
1
  module OffsitePayments
2
- VERSION = "2.7.7"
2
+ VERSION = "2.7.8"
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.7.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-09-13 00:00:00.000000000 Z
11
+ date: 2018-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport