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