lib/active_merchant/billing/gateways/exact.rb in activemerchant-1.87.0 vs lib/active_merchant/billing/gateways/exact.rb in activemerchant-1.88.0
- old
+ new
@@ -158,18 +158,18 @@
def expdate(credit_card)
"#{format(credit_card.month, :two_digits)}#{format(credit_card.year, :two_digits)}"
end
def commit(action, request)
- response = parse(ssl_post(self.live_url, build_request(action, request), POST_HEADERS))
+ response = parse(ssl_post(self.live_url, build_request(action, request), POST_HEADERS))
- Response.new(successful?(response), message_from(response), response,
- :test => test?,
- :authorization => authorization_from(response),
- :avs_result => { :code => response[:avs] },
- :cvv_result => response[:cvv2]
- )
+ Response.new(successful?(response), message_from(response), response,
+ :test => test?,
+ :authorization => authorization_from(response),
+ :avs_result => { :code => response[:avs] },
+ :cvv_result => response[:cvv2]
+ )
rescue ResponseError => e
case e.response.code
when '401'
return Response.new(false, "Invalid Login: #{e.response.body}", {}, :test => test?)
else
@@ -181,12 +181,12 @@
response[:transaction_approved] == SUCCESS
end
def authorization_from(response)
if response[:authorization_num] && response[:transaction_tag]
- "#{response[:authorization_num]};#{response[:transaction_tag]}"
+ "#{response[:authorization_num]};#{response[:transaction_tag]}"
else
- ''
+ ''
end
end
def message_from(response)
if response[:faultcode] && response[:faultstring]