Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::MerchantESolutionsGateway

Constants

LIVE_URL
TEST_URL

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 20
def initialize(options = {})
        requires!(options, :login, :password)
        @options = options
        super
end

Public Instance Methods

authorize(money, creditcard_or_card_id, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 26
def authorize(money, creditcard_or_card_id, options = {})
        post = {}
        add_invoice(post, options)
        add_payment_source(post, creditcard_or_card_id, options)        
        add_address(post, options)        
        commit('P', money, post)
end
capture(money, transaction_id, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 42
def capture(money, transaction_id, options = {})
        post ={}
        post[:transaction_id] = transaction_id
        commit('S', money, post)
end
credit(money, creditcard_or_card_id, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 64
def credit(money, creditcard_or_card_id, options = {})
        post = {}
        add_payment_source(post, creditcard_or_card_id, options)
        commit('C', money, post)
end
purchase(money, creditcard_or_card_id, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 34
def purchase(money, creditcard_or_card_id, options = {})
        post = {}
        add_invoice(post, options)
        add_payment_source(post, creditcard_or_card_id, options)        
        add_address(post, options)   
        commit('D', money, post)
end
refund(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 60
def refund(money, identification, options = {})
        commit('U', money, options.merge(:transaction_id => identification))
end
store(creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 48
def store(creditcard, options = {})
        post = {}
        add_creditcard(post, creditcard, options) 
        commit('T', nil, post)
end
unstore(card_id) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 54
def unstore(card_id)
        post = {}
        post[:card_id] = card_id
        commit('X', nil, post)
end
void(transaction_id, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/merchant_e_solutions.rb, line 70
def void(transaction_id, options = {})
        commit('V', nil, options.merge(:transaction_id => transaction_id))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.