lib/active_merchant/billing/gateways/skip_jack.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/skip_jack.rb in activemerchant-1.84.0
- old
+ new
@@ -316,11 +316,11 @@
end
def authorize_response_map(body)
lines = split_lines(body)
keys, values = split_line(lines[0]), split_line(lines[1])
- Hash[*(keys.zip(values).flatten)].symbolize_keys
+ Hash[*keys.zip(values).flatten].symbolize_keys
end
def parse_authorization_response(body)
result = authorize_response_map(body)
result[:success] = (result[:szIsApproved] == '1')
@@ -331,10 +331,10 @@
lines = split_lines(body)
keys = [ :szSerialNumber, :szErrorCode, :szNumberRecords]
values = split_line(lines[0])[0..2]
- result = Hash[*(keys.zip(values).flatten)]
+ result = Hash[*keys.zip(values).flatten]
result[:szErrorMessage] = ''
result[:success] = (result[:szErrorCode] == '0')
if result[:success]