lib/freemium/gateways/brain_tree.rb
# Stores a card in SecureVault.
Stores a card in SecureVault.
Stores a card in SecureVault .
def store(credit_card, address = nil)
        p = Post.new(URL, {
          :username => self.username,
          :password => self.password,
          :customer_vault => "add_customer"
        })
        p.params.merge! params_for_credit_card(credit_card)
        p.params.merge! params_for_address(address)         if address
        p.commit
        return p.response
      end
def store ( credit_card , address = nil ) p = Post . new ( URL , { :username => self . username , :password => self . password , :customer_vault => "add_customer" } ) p . params . merge! params_for_credit_card ( credit_card ) p . params . merge! params_for_address ( address ) if address p . commit return p . response end
Stores a card in SecureVault.
Stores a card in SecureVault .
credit_card
<not_specific>
address
<not_specific>