lib/active_merchant/billing/gateways/secure_net.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/secure_net.rb in activemerchant-1.27.0
- old
+ new
@@ -42,13 +42,13 @@
self.supported_cardtypes = [:visa, :master, :american_express, :discover]
self.homepage_url = 'http://www.securenet.com/'
self.display_name = 'SecureNet'
# self.wiredump_device = STDOUT
-# TEST_URL = 'https://certify.securenet.com/api/Gateway.svc'
- TEST_URL = 'https://certify.securenet.com/API/gateway.svc/webHttp/ProcessTransaction'
- LIVE_URL = 'https://gateway.securenet.com/api/Gateway.svc'
+# self.test_url = 'https://certify.securenet.com/api/Gateway.svc'
+ self.test_url = 'https://certify.securenet.com/API/gateway.svc/webHttp/ProcessTransaction'
+ self.live_url = 'https://gateway.securenet.com/api/Gateway.svc'
APPROVED, DECLINED, ERROR = 1, 2, 3
RESPONSE_CODE, RESPONSE_REASON_CODE, RESPONSE_REASON_TEXT = 0, 2, 3
AVS_RESULT_CODE, CARD_CODE_RESPONSE_CODE, TRANSACTION_ID = 5, 6, 8
@@ -83,10 +83,10 @@
end
private
def commit(request, money)
xml = build_request(request, money)
- data = ssl_post(TEST_URL, xml, "Content-Type" => "text/xml")
+ data = ssl_post(self.test_url, xml, "Content-Type" => "text/xml")
response = parse(data)
test_mode = test?
Response.new(success?(response), message_from(response), response,
:test => test_mode,