public function createCustomer($type, $customerId ,$payment = [], $additional = [])
    {
        $request = new CreateCustomer($this->config->getMerchantId());

        $request->setPType($type);
        $request->setPaymentData($payment);
        $request->setCustomerId($customerId);
        $request->setAdditional($additional);

        $this->request = $request->getXml();

        $this->send();

        $result = new CreateCustomerResponse($this->response);

        return $result;
    }
public function createCustomer($type, $customerId ,$payment = [], $additional = [])
    {
        $request = new CreateCustomer($this->config->getMerchantId());

        $request->setPType($type);
        $request->setPaymentData($payment);
        $request->setCustomerId($customerId);
        $request->setAdditional($additional);

        $this->request = $request->getXml();

        $this->send();

        $result = new CreateCustomerResponse($this->response);

        return $result;
    }
public function createCustomer ( $ type , $ customerId , $ payment = [ ] , $ additional = [ ] ) { $ request = new CreateCustomer ( $ this -> config -> getMerchantId ( ) ) ; $ request -> setPType ( $ type ) ; $ request -> setPaymentData ( $ payment ) ; $ request -> setCustomerId ( $ customerId ) ; $ request -> setAdditional ( $ additional ) ; $ this -> request = $ request -> getXml ( ) ; $ this -> send ( ) ; $ result = new CreateCustomerResponse ( $ this -> response ) ; return $ result ; }
Create a new customer for recurring payments

@param        $type
@param array  $payment
@param string $customerId
@param array  $additional

@return CreateCustomerResponse
Create a new customer for recurring payments