original_string: public function createApmOrder($order = array())
      {
          $myOrder = new APMOrder($order);
          $response = OrderService::createOrder($myOrder);
  
          if (isset($response["orderCode"])) {
              //success
              return $response;
          } else {
              Error::throwError("apierror");
          }
      }
code: public function createApmOrder($order = array())
      {
          $myOrder = new APMOrder($order);
          $response = OrderService::createOrder($myOrder);
  
          if (isset($response["orderCode"])) {
              //success
              return $response;
          } else {
              Error::throwError("apierror");
          }
      }
code_tokens: public function createApmOrder ( $ order = array ( ) ) { $ myOrder = new APMOrder ( $ order ) ; $ response = OrderService :: createOrder ( $ myOrder ) ; if ( isset ( $ response [ "orderCode" ] ) ) { //success return $ response ; } else { Error :: throwError ( "apierror" ) ; } }
docstring: Create Worldpay APM order
  @param array $order
  @return array Worldpay order response
docstring_tokens: Create Worldpay APM order