authorize_net 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authorize_net/api.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78fec70e849d16c5ede26ebba40e14bf6f0af8d2
|
4
|
+
data.tar.gz: e522029cf5da5c8ae60f0b6fd9b4d4af157439d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc13172b15a0445a9a2c0a938e6b299f52fbd62ee96459d85f2539ee5bb60e9ab37837e54ca8fc8294d69022eccc319003550b0ddaa35823aec925b842c897c
|
7
|
+
data.tar.gz: 4a109395ff2e53be5db64b4951d8ec7d48df6766ea5c994bf8003f093540455fe641e5c817cb2f0ef81d31d914e78d80e0d9fa8d05a47abfd27fb7d491100cf5
|
data/lib/authorize_net/api.rb
CHANGED
@@ -309,13 +309,13 @@ class AuthorizeNet::Api
|
|
309
309
|
@logger.info("[AuthorizeNet] Responded with resultCode=\"#{response.result}\"")
|
310
310
|
end
|
311
311
|
|
312
|
-
if !response.messages.nil? and @logger.respond_to?
|
312
|
+
if !response.messages.nil? and @logger.respond_to?(:info)
|
313
313
|
response.messages.each do |msg|
|
314
314
|
@logger.info("[AuthorizeNet] Message code=\"#{msg[:code]}\" text=\"#{msg[:text]}\"")
|
315
315
|
end
|
316
316
|
end
|
317
317
|
|
318
|
-
if !response.errors.nil? and @logger.respond_to?
|
318
|
+
if !response.errors.nil? and @logger.respond_to?(:error)
|
319
319
|
response.errors.each do |error|
|
320
320
|
@logger.error("[AuthorizeNet] Error code=\"#{error[:code]}\" text=\"#{error[:text]}\"")
|
321
321
|
end
|