lib/active_merchant/billing/gateways/secure_net.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/secure_net.rb in activemerchant-1.104.0
- old
+ new
@@ -1,9 +1,8 @@
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class SecureNetGateway < Gateway
-
API_VERSION = '4.0'
TRANSACTIONS = {
:auth_only => '0000',
:auth_capture => '0100',
@@ -26,12 +25,12 @@
self.test_url = 'https://certify.securenet.com/API/gateway.svc/webHttp/ProcessTransaction'
self.live_url = 'https://gateway.securenet.com/api/Gateway.svc/webHttp/ProcessTransaction'
APPROVED, DECLINED = 1, 2
- CARD_CODE_ERRORS = %w( N S )
- AVS_ERRORS = %w( A E N R W Z )
+ CARD_CODE_ERRORS = %w(N S)
+ AVS_ERRORS = %w(A E N R W Z)
def initialize(options = {})
requires!(options, :login, :password)
super
end
@@ -255,9 +254,8 @@
end
def build_authorization(response)
[response[:transactionid], response[:transactionamount], response[:last4_digits]].join('|')
end
-
end
end
end