protected function addProfileData(\SimpleXMLElement $data)
    {
        $req = $data->addChild('profile');
        // Merchant assigned customer ID
        $customer = $this->getCustomerId();
        if (!empty($customer)) {
            $req->merchantCustomerId = $customer;
        }
        $description = $this->getDescription();
        if (!empty($description)) {
            $req->description = $description;
        }
        $email = $this->getEmail();
        if (!empty($email)) {
            $req->email = $email;
        }
        $this->addPaymentProfileData($req);
        $this->addShippingData($req);
    }
protected function addProfileData(\SimpleXMLElement $data)
    {
        $req = $data->addChild('profile');
        // Merchant assigned customer ID
        $customer = $this->getCustomerId();
        if (!empty($customer)) {
            $req->merchantCustomerId = $customer;
        }
        $description = $this->getDescription();
        if (!empty($description)) {
            $req->description = $description;
        }
        $email = $this->getEmail();
        if (!empty($email)) {
            $req->email = $email;
        }
        $this->addPaymentProfileData($req);
        $this->addShippingData($req);
    }
protected function addProfileData ( \ SimpleXMLElement $ data ) { $ req = $ data -> addChild ( 'profile' ) ; // Merchant assigned customer ID $ customer = $ this -> getCustomerId ( ) ; if ( ! empty ( $ customer ) ) { $ req -> merchantCustomerId = $ customer ; } $ description = $ this -> getDescription ( ) ; if ( ! empty ( $ description ) ) { $ req -> description = $ description ; } $ email = $ this -> getEmail ( ) ; if ( ! empty ( $ email ) ) { $ req -> email = $ email ; } $ this -> addPaymentProfileData ( $ req ) ; $ this -> addShippingData ( $ req ) ; }
Add customer profile data to the specified xml element

@param \SimpleXMLElement $data
Add customer profile data to the specified xml element