lib/Braintree/TransparentRedirectGateway.php
public function updateCustomerData($params)
    {
        Util::verifyKeys(
                self::$_updateCustomerSignature,
                $params
                );
        if (!isset($params['customerId'])) {
            throw new InvalidArgumentException(
                   'expected params to contain customerId of customer to update'
                   );
        }
        $params["kind"] = TransparentRedirect::UPDATE_CUSTOMER;
        return $this->_data($params);
    }
public function updateCustomerData($params)
    {
        Util::verifyKeys(
                self::$_updateCustomerSignature,
                $params
                );
        if (!isset($params['customerId'])) {
            throw new InvalidArgumentException(
                   'expected params to contain customerId of customer to update'
                   );
        }
        $params["kind"] = TransparentRedirect::UPDATE_CUSTOMER;
        return $this->_data($params);
    }
public function updateCustomerData ( $ params ) { Util :: verifyKeys ( self :: $ _updateCustomerSignature , $ params ) ; if ( ! isset ( $ params [ 'customerId' ] ) ) { throw new InvalidArgumentException ( 'expected params to contain customerId of customer to update' ) ; } $ params [ "kind" ] = TransparentRedirect :: UPDATE_CUSTOMER ; return $ this -> _data ( $ params ) ; }
Returns the trData string for updating a customer.

The customerId of the customer to update is required.

<code>
$trData = TransparentRedirect::updateCustomerData(array(
'redirectUrl' => 'http://example.com/redirect_here',
'customerId' => 'customer123',
));
</code>

@param array $params
@return string
Returns the trData string for updating a customer .