Skip to content

Commit

Permalink
add addcustomer and retrieving customer id
Browse files Browse the repository at this point in the history
  • Loading branch information
igkins committed Dec 23, 2010
1 parent 2d40d0e commit 932c71c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/active_merchant/billing/gateways/usa_epay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ def add_customer_data(post, options)

if options.has_key? :ip
post[:ip] = options[:ip]
end
end

if options.has_key? :addcustomer
post[:addcustomer] = 'yes'
end
end

def add_address(post, credit_card, options)
Expand Down Expand Up @@ -154,7 +158,8 @@ def parse(body)
:error => fields['UMerror'],
:error_code => fields['UMerrorcode'],
:acs_url => fields['UMacsurl'],
:payload => fields['UMpayload']
:payload => fields['UMpayload'],
:customer_num => fields['UMcustnum']
}.delete_if{|k, v| v.nil?}
end

Expand Down

0 comments on commit 932c71c

Please sign in to comment.