public function createApmOrder($order = array())
    {
        $myOrder = new APMOrder($order);
        $response = OrderService::createOrder($myOrder);

        if (isset($response["orderCode"])) {
            //success
            return $response;
        } else {
            Error::throwError("apierror");
        }
    }
public function createApmOrder($order = array())
    {
        $myOrder = new APMOrder($order);
        $response = OrderService::createOrder($myOrder);

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