original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Create a new customer for recurring payments
  
  @param        $type
  @param array  $payment
  @param string $customerId
  @param array  $additional
  
  @return CreateCustomerResponse
docstring_tokens: Create a new customer for recurring payments