so_paid 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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