src/ClearSaleID/Service/Analysis.php
public function updateOrderStatus( $orderId, $newStatusCode, $notes = '' )
    {
        if (!in_array( $newStatusCode, self::$updateOrderStatusList )) {
            throw new InvalidArgumentException( sprintf( 'Invalid new status code (%s)', $newStatusCode ) );
        }

        $this->updateOrderStatusResponse = $this->integration->updateOrderStatus( $orderId, $newStatusCode, $notes );

        return true;
    }
public function updateOrderStatus( $orderId, $newStatusCode, $notes = '' )
    {
        if (!in_array( $newStatusCode, self::$updateOrderStatusList )) {
            throw new InvalidArgumentException( sprintf( 'Invalid new status code (%s)', $newStatusCode ) );
        }

        $this->updateOrderStatusResponse = $this->integration->updateOrderStatus( $orderId, $newStatusCode, $notes );

        return true;
    }
Método para atualizar o pedido com o status do pagamento

@param  string $orderId
@param  string $newStatusCode
@param  string $notes

@return boolean
@throws \RodrigoPedra\ClearSaleID\Exception\UnexpectedErrorException
@throws \RodrigoPedra\ClearSaleID\Exception\UpdateOrderStatusException