Skip to content

Commit

Permalink
updated commit() to set the authorization attribute of the returned R…
Browse files Browse the repository at this point in the history
…esponse object to response['transaction_id'] instead of response['auth_code']
  • Loading branch information
ebsjzw authored and Cody Fauser committed May 3, 2009
1 parent a40475d commit 993428d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/active_merchant/billing/gateways/merchant_e_solutions.rb
Expand Up @@ -51,11 +51,11 @@ def store(creditcard, options = {})
commit('T', nil, post)
end

# def unstore(card_id)
# post = {}
# post[:card_id] = card_id
# commit('X', nil, post)
# end
def unstore(card_id)
post = {}
post[:card_id] = card_id
commit('X', nil, post)
end

# def credit(money, creditcard_or_card_id, options = {})
# post ={}
Expand Down Expand Up @@ -114,7 +114,7 @@ def commit(action, money, parameters)
response = parse( ssl_post(url, post_data(action,parameters)) )

Response.new(response["error_code"] == "000", message_from(response), response,
:authorization => response["auth_code"],
:authorization => response["transaction_id"],
:test => test?,
:cvv_result => response["cvv2_result"],
:avs_result => { :code => response["avs_result"] }
Expand Down

0 comments on commit 993428d

Please sign in to comment.