lib/active_merchant/billing/gateways/transbank_oneclick.rb
def purchase(money, token, options = {})
        token, username = split_token(token)

        data = {}

        options[:username] = username
        add_customer_details(data, options)
        add_token(data, token)

        add_amount(data, money)
        add_order(data, options[:order_id])

        commit :authorize, data
      end
# If no order_id is provided in the options, it will be
# generated automatically.
If no order_id is provided in the options, it will be
generated automatically.
If no order_id is provided in the options it will be generated automatically .
def purchase(money, token, options = {})
        token, username = split_token(token)
        data = {}
        options[:username] = username
        add_customer_details(data, options)
        add_token(data, token)
        add_amount(data, money)
        add_order(data, options[:order_id])
        commit :authorize, data
      end
def purchase ( money , token , options = { } ) token , username = split_token ( token ) data = { } options [ :username ] = username add_customer_details ( data , options ) add_token ( data , token ) add_amount ( data , money ) add_order ( data , options [ :order_id ] ) commit :authorize , data end
If no order_id is provided in the options, it will be
generated automatically.
If no order_id is provided in the options it will be generated automatically .
money
token
options