Skip to content

Commit

Permalink
get list of funds
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrederickson committed Apr 14, 2021
1 parent f2a856f commit e066689
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/active_merchant/billing/gateways/vanco/vanco_nvp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ def initialize(options={})
super
end

def funds(session_id, options={})
results = MultiResponse.run do |r|
r.process { commit('funds', vanco_fund_list(session_id, options)) }
end
end

def purchase(money, payment_method, options={})
MultiResponse.run do |r|
r.process { login }
Expand Down Expand Up @@ -145,6 +151,15 @@ def purchase_request(money, payment_method, session_id, options)
doc
end

def vanco_fund_list(session_id, options)
doc = {}
doc['nvpvar'] = {}
add_auth(doc, 'eftgetfundlist', session_id)
add_client_id(doc)
add_options(doc, options)
doc
end

def vanco_purchase_request(customer_ref, payment_method_ref, session_id, options)
doc = {}
doc['nvpvar'] = {}
Expand Down

0 comments on commit e066689

Please sign in to comment.