Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tweaks to the config change

  • Loading branch information...
commit 8f2579057fa2c1e48b466f51e8146e33cbaf0e33 1 parent 66c55d6
Alastair Brunton pyrat authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/peeves/protx_response.rb
  2. +2 2 lib/peeves_gateway.rb
2  lib/peeves/protx_response.rb
@@ -44,7 +44,7 @@ def verify!
44 44 # TODO: Make this work, currently fails all
45 45 md5 = Digest::MD5.new
46 46 md5 << "#{self.vps_transaction_id}#{self.transaction_reference}#{self.status}#{self.transaction_authorisation_number}" +
47   - "#{Peeves::Config::VENDOR}#{self.avs_cv2_result}#{self.security_key}#{self.address_result}#{self.post_code_result}" +
  47 + "#{Peeves::Config.vendor}#{self.avs_cv2_result}#{self.security_key}#{self.address_result}#{self.post_code_result}" +
48 48 "#{self.cv2_result}#{self.gift_aid}#{self.status_3d_secure}#{self.code_3d_secure}"
49 49
50 50 raise Peeves::Error, "MD5 appears to have been tampered with! (#{md5.hexdigest} != #{self.vps_signature})" unless md5.hexdigest == self.vps_signature
4 lib/peeves_gateway.rb
@@ -27,7 +27,7 @@ class PeevesGateway
27 27 "NOTMATCHED" => 'N'
28 28 }
29 29
30   - def initialize(mode=Peeves::Config::GATEWAY_MODE)
  30 + def initialize(mode=Peeves::Config.gateway_mode)
31 31 @mode = mode
32 32 end
33 33
@@ -274,7 +274,7 @@ def add_common(type)
274 274 @post = Peeves::PostData.new
275 275 @post["TxType"] = type
276 276 @post["VPSProtocol"] = VPS_PROTOCOL
277   - @post["Vendor"] = Peeves::Config::VENDOR
  277 + @post["Vendor"] = Peeves::Config.vendor
278 278 end
279 279
280 280 def add_post_processing(options)

0 comments on commit 8f25790

Please sign in to comment.
Something went wrong with that request. Please try again.