lib/AktiveMerchant/Billing/Gateways/FatZebra.php
public function updateCustomer($customer_id, CreditCard $creditcard = null, $options = array())
    {
        $this->post = array();

        $options = new Options($options);

        $this->addCustomerData($options);
        $this->addAddress($options);
        $address = $this->post['address'];
        unset($this->post['address']);
        $this->post = array_merge($this->post, $address);

        if (null !== $creditcard) {
            $this->addRecurringCreditcard($creditcard);
        }

        $customer_id = urlencode(trim($customer_id));

        return $this->commit("customers/{$customer_id}", RequestInterface::METHOD_PUT);
    }
public function updateCustomer($customer_id, CreditCard $creditcard = null, $options = array())
    {
        $this->post = array();

        $options = new Options($options);

        $this->addCustomerData($options);
        $this->addAddress($options);
        $address = $this->post['address'];
        unset($this->post['address']);
        $this->post = array_merge($this->post, $address);

        if (null !== $creditcard) {
            $this->addRecurringCreditcard($creditcard);
        }

        $customer_id = urlencode(trim($customer_id));

        return $this->commit("customers/{$customer_id}", RequestInterface::METHOD_PUT);
    }
public function updateCustomer ( $ customer_id , CreditCard $ creditcard = null , $ options = array ( ) ) { $ this -> post = array ( ) ; $ options = new Options ( $ options ) ; $ this -> addCustomerData ( $ options ) ; $ this -> addAddress ( $ options ) ; $ address = $ this -> post [ 'address' ] ; unset ( $ this -> post [ 'address' ] ) ; $ this -> post = array_merge ( $ this -> post , $ address ) ; if ( null !== $ creditcard ) { $ this -> addRecurringCreditcard ( $ creditcard ) ; } $ customer_id = urlencode ( trim ( $ customer_id ) ) ; return $ this -> commit ( "customers/{$customer_id}" , RequestInterface :: METHOD_PUT ) ; }
Updates customer information.

@param string     $customer_id The id returned from gateway when the
customer record creted to the gateway.
@param CreditCard $creditcard
@param array      $options
@access public
@return void
Updates customer information .