public static function statusUpdate($orderStatusUpdate)
    {
        if (empty($orderStatusUpdate)) {
            throw new OpenPayU_Exception('Empty order status data');
        }

        try {
            $authType = self::getAuth();
        } catch (OpenPayU_Exception $e) {
            throw new OpenPayU_Exception($e->getMessage(), $e->getCode());
        }

        $data = OpenPayU_Util::buildJsonFromArray($orderStatusUpdate);
        $pathUrl = OpenPayU_Configuration::getServiceUrl() . self::ORDER_SERVICE . $orderStatusUpdate['orderId'] . '/status';

        $result = self::verifyResponse(OpenPayU_Http::doPut($pathUrl, $data, $authType), 'OrderStatusUpdateResponse');

        return $result;
    }
public static function statusUpdate($orderStatusUpdate)
    {
        if (empty($orderStatusUpdate)) {
            throw new OpenPayU_Exception('Empty order status data');
        }

        try {
            $authType = self::getAuth();
        } catch (OpenPayU_Exception $e) {
            throw new OpenPayU_Exception($e->getMessage(), $e->getCode());
        }

        $data = OpenPayU_Util::buildJsonFromArray($orderStatusUpdate);
        $pathUrl = OpenPayU_Configuration::getServiceUrl() . self::ORDER_SERVICE . $orderStatusUpdate['orderId'] . '/status';

        $result = self::verifyResponse(OpenPayU_Http::doPut($pathUrl, $data, $authType), 'OrderStatusUpdateResponse');

        return $result;
    }
public static function statusUpdate ( $ orderStatusUpdate ) { if ( empty ( $ orderStatusUpdate ) ) { throw new OpenPayU_Exception ( 'Empty order status data' ) ; } try { $ authType = self :: getAuth ( ) ; } catch ( OpenPayU_Exception $ e ) { throw new OpenPayU_Exception ( $ e -> getMessage ( ) , $ e -> getCode ( ) ) ; } $ data = OpenPayU_Util :: buildJsonFromArray ( $ orderStatusUpdate ) ; $ pathUrl = OpenPayU_Configuration :: getServiceUrl ( ) . self :: ORDER_SERVICE . $ orderStatusUpdate [ 'orderId' ] . '/status' ; $ result = self :: verifyResponse ( OpenPayU_Http :: doPut ( $ pathUrl , $ data , $ authType ) , 'OrderStatusUpdateResponse' ) ; return $ result ; }
Updates Order status
- Sends to PayU OrderStatusUpdateRequest

@param string $orderStatusUpdate A array containing full OrderStatus
@return OpenPayU_Result $result Response array with OrderStatusUpdateResponse
@throws OpenPayU_Exception
Updates Order status - Sends to PayU OrderStatusUpdateRequest