lib/active_merchant/billing/gateways/cardknox.rb in activemerchant-1.87.0 vs lib/active_merchant/billing/gateways/cardknox.rb in activemerchant-1.88.0
- old
+ new
@@ -79,12 +79,12 @@
commit(:void, source_type(authorization), post)
end
def verify(credit_card, options={})
MultiResponse.run(:use_first_response) do |r|
- r.process { authorize(100, credit_card, options) }
- r.process(:ignore_result) { void(r.authorization, options) }
+ r.process { authorize(100, credit_card, options) }
+ r.process(:ignore_result) { void(r.authorization, options) }
end
end
def store(source, options = {})
post = {}
@@ -280,17 +280,17 @@
end
def commit(action, source_type, parameters)
response = parse(ssl_post(live_url, post_data(COMMANDS[source_type][action], parameters)))
- Response.new(
- (response[:status] == 'Approved'),
- message_from(response),
- response,
- authorization: authorization_from(response, source_type),
- avs_result: { code: response[:avs_result_code] },
- cvv_result: response[:cvv_result_code]
- )
+ Response.new(
+ (response[:status] == 'Approved'),
+ message_from(response),
+ response,
+ authorization: authorization_from(response, source_type),
+ avs_result: { code: response[:avs_result_code] },
+ cvv_result: response[:cvv_result_code]
+ )
end
def message_from(response)
if response[:status] == 'Approved'
'Success'