so_paid 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,12 @@ SoPaid.configure do |config|
|
|
17
17
|
# hash if you don't want, and just use the default
|
18
18
|
# outer hash
|
19
19
|
|
20
|
+
# ALSO: merchant_defined_data100
|
21
|
+
# is reserved for gem to determine
|
22
|
+
# which 'mode' was originally chosen
|
23
|
+
# before posting to cybersource
|
24
|
+
# upon reply verification sig.
|
25
|
+
|
20
26
|
:live=>{
|
21
27
|
:secret_key=>"your_key",
|
22
28
|
:access_key=>"your_key"
|
data/lib/so_paid/cybersource.rb
CHANGED
@@ -79,7 +79,7 @@ module SoPaid
|
|
79
79
|
|
80
80
|
|
81
81
|
def self.verify_transaction_signature(message)
|
82
|
-
if message[:req_merchant_defined_data100].present? and message[:
|
82
|
+
if message[:req_merchant_defined_data100].present? and message[:req_merchant_defined_data100] == "test"
|
83
83
|
secret_key = get_secret_key_for(:test)
|
84
84
|
else
|
85
85
|
secret_key = get_secret_key_for(:live)
|
data/lib/so_paid/version.rb
CHANGED